Home
last modified time | relevance | path

Searched refs:cap_setid (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.10/kernel/
Duser_namespace.c28 struct user_namespace *ns, int cap_setid,
846 int cap_setid, in map_write() argument
898 if (cap_valid(cap_setid) && !file_ns_capable(file, ns, CAP_SYS_ADMIN)) in map_write()
968 if (!new_idmap_permitted(file, ns, cap_setid, &new_map)) in map_write()
1085 struct user_namespace *ns, int cap_setid, in new_idmap_permitted() argument
1095 if (cap_setid == CAP_SETUID) { in new_idmap_permitted()
1099 } else if (cap_setid == CAP_SETGID) { in new_idmap_permitted()
1108 if (!cap_valid(cap_setid)) in new_idmap_permitted()
1115 if (ns_capable(ns->parent, cap_setid) && in new_idmap_permitted()
1116 file_ns_capable(file, ns->parent, cap_setid)) in new_idmap_permitted()