Searched refs:cap_setid (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/kernel/ |
D | user_namespace.c | 29 struct user_namespace *ns, int cap_setid, 924 int cap_setid, in map_write() argument 976 if (cap_valid(cap_setid) && !file_ns_capable(file, map_ns, CAP_SYS_ADMIN)) in map_write() 1046 if (!new_idmap_permitted(file, map_ns, cap_setid, &new_map)) in map_write() 1163 struct user_namespace *ns, int cap_setid, in new_idmap_permitted() argument 1168 if (cap_setid == CAP_SETUID && !verify_root_map(file, ns, new_map)) in new_idmap_permitted() 1177 if (cap_setid == CAP_SETUID) { in new_idmap_permitted() 1181 } else if (cap_setid == CAP_SETGID) { in new_idmap_permitted() 1190 if (!cap_valid(cap_setid)) in new_idmap_permitted() 1197 if (ns_capable(ns->parent, cap_setid) && in new_idmap_permitted() [all …]
|