函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\capability.c Create Date:2022-07-27 10:12:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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
intcap
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
调用者
名称描述
map_write
new_idmap_permitted
r_show
safesetid_file_write