函数逻辑报告 |
Source Code:security\commoncap.c |
Create Date:2022-07-27 20:10:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Calculate the new process capability sets from the capability sets attached* to a file.
函数原型:static inline int bprm_caps_from_vfs_caps(struct cpu_vfs_cap_data *caps, struct linux_binprm *bprm, bool *effective, bool *has_fcap)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpu_vfs_cap_data * | caps | |
struct linux_binprm * | bprm | |
bool * | effective | |
bool * | has_fcap |
533 | new等于w credentials |
535 | ret等于0 |
537 | 如果magic_etc按位与VFS_CAP_FLAGS_EFFECTIVE则 * effective = true |
540 | 如果magic_etc按位与VFS_CAP_REVISION_MASK则 * has_fcap = true |
545 | inheritable等于cap[i] |
名称 | 描述 |
---|---|
get_file_caps | Attempt to get the on-exec apply capability sets for an executable file from* its xattrs and, if present, apply them to the proposed credentials being* constructed by execve(). |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |