函数逻辑报告 |
Source Code:security\commoncap.c |
Create Date:2022-07-27 20:09:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ap_capset - Validate and apply proposed changes to current's capabilities*@new: The proposed new credentials; alterations should be made here*@old: The current task's current credentials*@effective: A pointer to the proposed new effective capabilities
函数原型:int cap_capset(struct cred *new, const struct cred *old, const kernel_cap_t *effective, const kernel_cap_t *inheritable, const kernel_cap_t *permitted)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cred * | new | |
const struct cred * | old | |
const kernel_cap_t * | effective | |
const kernel_cap_t * | inheritable | |
const kernel_cap_t * | permitted |
276 | Ambient capability set 等于cap_intersect( Ambient capability set , cap_intersect( * permitted, * inheritable)) |
279 | 如果WARN_ON(!cap_ambient_invariant_ok(new))则返回:负EINVAL |
281 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |