Lines Matching refs:cap_setid
29 struct user_namespace *ns, int cap_setid,
922 int cap_setid, in map_write() argument
974 if (cap_valid(cap_setid) && !file_ns_capable(file, map_ns, CAP_SYS_ADMIN)) in map_write()
1044 if (!new_idmap_permitted(file, map_ns, cap_setid, &new_map)) in map_write()
1161 struct user_namespace *ns, int cap_setid, in new_idmap_permitted() argument
1166 if (cap_setid == CAP_SETUID && !verify_root_map(file, ns, new_map)) in new_idmap_permitted()
1175 if (cap_setid == CAP_SETUID) { in new_idmap_permitted()
1179 } else if (cap_setid == CAP_SETGID) { in new_idmap_permitted()
1188 if (!cap_valid(cap_setid)) in new_idmap_permitted()
1195 if (ns_capable(ns->parent, cap_setid) && in new_idmap_permitted()
1196 file_ns_capable(file, ns->parent, cap_setid)) in new_idmap_permitted()