Function report |
Source Code:kernel\capability.c |
Create Date:2022-07-28 09:12:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
const struct file * | file | |
struct user_namespace * | ns | |
int | cap |
470 | If WARN_ON_ONCE(!cap_valid(cap)) Then Return false |
473 | If security_capable(f_cred, ns, cap, Default (no) options for the capable function ) == 0 Then Return true |
476 | Return false |
Name | Describe |
---|---|
map_write | |
new_idmap_permitted |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |