函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\policy_unpack.c Create Date:2022-07-27 21:35:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:verify_head - unpack serialized stream header*@e: serialized data read head (NOT NULL)*@required: whether the header is required or optional*@ns: Returns - namespace if one is specified else NULL (NOT NULL)* Returns: error or 0 if header is good

函数原型:static int verify_header(struct aa_ext *e, int required, const char **ns)

返回类型:int

参数:

类型参数名称
struct aa_ext *e
intrequired
const char **ns
944  error等于负EPROTONOSUPPORT
945  const char * name = NULL
946  * ns = NULL
949  如果非unpack_u32(e, & version, "version")则
950  如果required
953  返回:error
961  如果VERSION_LT(version, ase version )或VERSION_GT(version, v7)则
962  audit_iface - do audit message for policy unpacking/load/replace/remove*@new: profile if it has been allocated (MAYBE NULL)*@ns_name: name of the ns the profile is to be loaded to (MAY BE NULL)*@name: name of the profile being manipulated (MAYBE
964  返回:error
968  如果unpack_str(e, & name, "namespace")则
969  如果name恒等于'\0'则
972  返回:error
974  如果ns字符串比较
977  否则如果非ns
979  如果非ns则返回:负ENOMEM
984  返回:0
调用者
名称描述
aa_unpackaa_unpack - unpack packed binary profile(s) data loaded from user space*@udata: user data copied to kmem (NOT NULL)*@lh: list to place unpacked profiles in a aa_repl_ws*@ns: Returns namespace profile is in if specified else NULL (NOT NULL)* Unpack user