Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smk_curacc_on_task - helper to log task related access*@p: the task object*@access: the access requested*@caller: name of the calling function for audit* Return 0 if access is permitted

Proto:static int smk_curacc_on_task(struct task_struct *p, int access, const char *caller)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
intaccess
const char *caller
2045  skp = smk_of_task_struct(p)
2048  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
2049  smk_ad_setfield_u_tsk( & ad, p)
2050  rc = smk_curacc - determine if current has a specific access to an object*@obj_known: a pointer to the object's Smack label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the current subject label/object label
2051  rc = smk_bu_task(p, access, rc)
2052  Return rc
Caller
NameDescribe
smack_task_setpgidsmack_task_setpgid - Smack check on setting pgid*@p: the task object*@pgid: unused* Return 0 if write access is permitted
smack_task_getpgidsmack_task_getpgid - Smack access check for getpgid*@p: the object task* Returns 0 if current can read the object task, error code otherwise
smack_task_getsidsmack_task_getsid - Smack access check for getsid*@p: the object task* Returns 0 if current can read the object task, error code otherwise
smack_task_setnicesmack_task_setnice - Smack check on setting nice*@p: the task object*@nice: unused* Return 0 if write access is permitted
smack_task_setiopriosmack_task_setioprio - Smack check on setting ioprio*@p: the task object*@ioprio: unused* Return 0 if write access is permitted
smack_task_getiopriosmack_task_getioprio - Smack check on reading ioprio*@p: the task object* Return 0 if read access is permitted
smack_task_setschedulersmack_task_setscheduler - Smack check on setting scheduler*@p: the task object* Return 0 if read access is permitted
smack_task_getschedulersmack_task_getscheduler - Smack check on reading scheduler*@p: the task object* Return 0 if read access is permitted
smack_task_movememorysmack_task_movememory - Smack check on moving memory*@p: the task object* Return 0 if write access is permitted