函数逻辑报告 |
Source Code:security\commoncap.c |
Create Date:2022-07-27 20:11:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ap_task_prctl - Implement process control functions for this security module*@option: The process control function requested*@arg2, @arg3, @arg4, @arg5: The argument data for this function* Allow process control functions (sys_prctl()) to alter
函数原型:int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | option | |
unsigned long | arg2 | |
unsigned long | arg3 | |
unsigned long | arg4 | |
unsigned long | arg5 |
1170 | old等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
1177 | 返回:非非cap_raised( capability bounding set , arg2) |
1179 | 当:option恒等于PR_CAPBSET_DROP |
1201 | 当:option恒等于PR_SET_SECUREBITS |
1228 | 返回:安全管理 |
1233 | 当:option恒等于PR_SET_KEEPCAPS |
1236 | 如果issecure(make bit-4 immutable )则返回:负EPERM |
1239 | new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification |
1249 | 如果arg2恒等于PR_CAP_AMBIENT_CLEAR_ALL则 |
1253 | new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification |
1256 | cap_clear( Ambient capability set ) |
1263 | 如果arg2恒等于PR_CAP_AMBIENT_IS_SET则 |
1264 | 返回:非非cap_raised(cap_ambient, arg3) |
1265 | 否则如果arg2不等于PR_CAP_AMBIENT_RAISE且arg2不等于PR_CAP_AMBIENT_LOWER则 |
1267 | 返回:负EINVAL |
1268 | 否则 |
1269 | 如果arg2恒等于PR_CAP_AMBIENT_RAISE且非cap_raised(cap_permitted, arg3)或非cap_raised(cap_inheritable, arg3)或issecure(When set, a process cannot add new capabilities to its ambient set. )的值则返回:负EPERM |
1276 | new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification |
1279 | 如果arg2恒等于PR_CAP_AMBIENT_RAISE则cap_raise( Ambient capability set , arg3) |
1281 | 否则cap_lower( Ambient capability set , arg3) |
1286 | 默认 |
1288 | 返回:负ENOSYS |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |