函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:27:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check whether a task is allowed to use a capability.
函数原型:static int cred_has_capability(const struct cred *cred, int cap, unsigned int opts, bool initns)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct cred * | cred | |
int | cap | |
unsigned int | opts | |
bool | initns |
1635 | av等于mask for indexed __u32 (cap) |
1638 | type等于LSM_AUDIT_DATA_CAP |
1642 | 当:1 << 5 == bits in __u32 (cap)恒等于0 |
1644 | 退出 |
1645 | 当:1 << 5 == bits in __u32 (cap)恒等于1 |
1647 | 退出 |
1648 | 默认 |
1656 | 如果非opts按位与If capable should audit the security request 的值则 |
1662 | 返回:rc |
名称 | 描述 |
---|---|
selinux_capable | (This comment used to live with the selinux_task_setuid hook,* which was removed).* Since setuid only affects the current process, and since the SELinux* controls are not based on the Linux identity attributes, SELinux does not |
selinux_vm_enough_memory | Check that a process has enough memory to allocate a new virtual* mapping. 0 means there is enough memory for the allocation to* succeed and -ENOMEM implies there is not.* Do not audit the selinux permission check, as this is applied to all |
has_cap_mac_admin | |
selinux_file_ioctl |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |