函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apparmor_getprocattr

函数原型:static int apparmor_getprocattr(struct task_struct *task, char *name, char **value)

返回类型:int

参数:

类型参数名称
struct task_struct *task
char *name
char **value
591  error等于负ENOENT
593  cred等于get_task_cred - Get another task's objective credentials*@task: The task to query* Get the objective credentials of a task, pinning them so that they can't go* away
594  ctx等于task_ctx(当前进程)
595  struct aa_label * label = NULL
597  如果字符串比较恒等于0则label等于aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.
599  否则如果字符串比较恒等于0且previouslabel等于aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.
601  否则如果字符串比较恒等于0且onexeclabel等于aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.
603  否则error等于负EINVAL
606  如果labelerror等于aa_getprocattr - Return the profile information for @profile*@profile: the profile to print profile info about (NOT NULL)*@string: Returns - string containing the profile info (NOT NULL)* Returns: length of @string on success else error on failure*
609  aa_put_label(label)
610  put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released
612  返回:error