函数逻辑报告 |
Source Code:kernel\capability.c |
Create Date:2022-07-27 10:12:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:le_ns_capable - Determine if the file's opener had a capability in effect*@file: The file we want to check*@ns: The usernamespace we want the capability in*@cap: The capability to be tested for* Return true if task that opened the file had a capability in
函数原型:bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct file * | file | |
struct user_namespace * | ns | |
int | cap |
470 | 如果WARN_ON_ONCE(!cap_valid(cap))则返回:false |
473 | 如果security_capable(f_cred, ns, cap, Default (no) options for the capable function )恒等于0则返回:true |
476 | 返回:false |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |