Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-28 19:53:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:apparmor_task_kill

Proto:static int apparmor_task_kill(struct task_struct *target, struct kernel_siginfo *info, int sig, const struct cred *cred)

Type:int

Parameter:

TypeParameterName
struct task_struct *target
struct kernel_siginfo *info
intsig
const struct cred *cred
748  If cred Then
752  cl = aa_get_newest_cred_label - obtain the newest label on a cred*@cred: cred to obtain label from (NOT NULL)* Returns: newest version of confining label
753  tl = aa_get_task_label - Get another task's label*@task: task to query (NOT NULL)* Returns: counted reference to @task's label
754  error = aa_may_signal(cl, tl, sig)
755  aa_put_label(cl)
756  aa_put_label(tl)
757  Return error
760  cl = __begin_current_label_crit_section - current's confining label* Returns: up to date confining label or the ns unconfined label (NOT NULL)* safe to call inside locks* The returned reference must be put with __end_current_label_crit_section()* This must NOT
761  tl = aa_get_task_label - Get another task's label*@task: task to query (NOT NULL)* Returns: counted reference to @task's label
762  error = aa_may_signal(cl, tl, sig)
763  aa_put_label(tl)
764  __end_current_label_crit_section(cl)
766  Return error