函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:helper fn for change_hat* Returns: label for hat transition OR ERR_PTR. Does NOT return NULL

函数原型:static struct aa_label *build_change_hat(struct aa_profile *profile, const char *name, bool sibling)

返回类型:struct aa_label

参数:

类型参数名称
struct aa_profile *profile
const char *name
boolsibling
1002  struct aa_profile * root, * hat = NULL
1003  const char * info = NULL
1004  error等于0
1006  如果siblingPROFILE_IS_HAT(profile)则
1007  root等于aa_get_profile_rcu - increment a refcount profile that can be replaced*@p: pointer to profile that can be replaced (NOT NULL)* Returns: pointer to a refcounted profile.* else NULL if no profile
1008  否则如果非sibling且非PROFILE_IS_HAT(profile)则
1009  root等于aa_get_profile - increment refcount on profile @p*@p: profile (MAYBE NULL)* Returns: pointer to @p if @p is NULL will return NULL* Requires: @p must be held with valid refcount when called
1010  否则
1011  info等于"conflicting target types"
1012  error等于负EPERM
1013  转到:audit
1016  hat等于aa_find_child - find a profile by @name in @parent*@parent: profile to search (NOT NULL)*@name: profile name to search for (NOT NULL)* Returns: a refcounted profile or NULL if not found
1017  如果非hat
1018  error等于负ENOENT
1019  如果COMPLAIN_MODE(profile)则
1022  如果非hat
1023  info等于"failed null profile create"
1024  error等于负ENOMEM
1028  aa_put_profile - decrement refcount on profile @p*@p: profile (MAYBE NULL)
1030  audit :
1031  aa_audit_file - handle the auditing of file operations*@profile: the profile being enforced (NOT NULL)*@perms: the permissions computed for the request (NOT NULL)*@op: operation being mediated*@request: permissions requested*@name: name of object being
1035  如果非haterrorerror不等于负ENOENT则返回:错误号
1040  返回:label
调用者
名称描述
change_hathelper fn for changing into a hat* Returns: label for hat transition or ERR_PTR. Does not return NULL