函数逻辑报告 | 
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 | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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 | |
| int | access | |
| const char * | caller | 
| 2045 | skp等于smk_of_task_struct(p) | 
| 2049 | smk_ad_setfield_u_tsk( & ad, p) | 
| 2051 | rc等于smk_bu_task(p, access, rc) | 
| 2052 | 返回:rc | 
| 名称 | 描述 | 
|---|---|
| smack_task_setpgid | smack_task_setpgid - Smack check on setting pgid*@p: the task object*@pgid: unused* Return 0 if write access is permitted | 
| smack_task_getpgid | smack_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_getsid | smack_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_setnice | smack_task_setnice - Smack check on setting nice*@p: the task object*@nice: unused* Return 0 if write access is permitted | 
| smack_task_setioprio | smack_task_setioprio - Smack check on setting ioprio*@p: the task object*@ioprio: unused* Return 0 if write access is permitted | 
| smack_task_getioprio | smack_task_getioprio - Smack check on reading ioprio*@p: the task object* Return 0 if read access is permitted | 
| smack_task_setscheduler | smack_task_setscheduler - Smack check on setting scheduler*@p: the task object* Return 0 if read access is permitted | 
| smack_task_getscheduler | smack_task_getscheduler - Smack check on reading scheduler*@p: the task object* Return 0 if read access is permitted | 
| smack_task_movememory | smack_task_movememory - Smack check on moving memory*@p: the task object* Return 0 if write access is permitted | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |