函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int smk_curacc_on_task(struct task_struct *p, int access, const char *caller)

返回类型:int

参数:

类型参数名称
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  返回:rc
调用者
名称描述
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