Searched refs:CAP_SETUID (Results 1 – 13 of 13) sorted by relevance
| /linux-6.15/Documentation/admin-guide/LSM/ |
| H A D | SafeSetID.rst | 14 to switch to a different user must be spawned with CAP_SETUID privileges. 15 CAP_SETUID is granted to programs running as root or those running as a non-root 16 user that have been explicitly given the CAP_SETUID runtime capability. It is 25 since CAP_SETUID allows changing to any user on the system, including the root 35 other untrusted uids without full blown CAP_SETUID capabilities. The non-root 36 program would still need CAP_SETUID to do any kind of transition, but the 38 of CAP_SETUID since the non-root program cannot take advantage of CAP_SETUID to 41 services without having to give out CAP_SETUID all over the place just so that 45 basically-root-equivalent CAP_SETUID. 112 previously for CAP_SETUID. However, for compatibility with common sandboxing
|
| /linux-6.15/security/safesetid/ |
| H A D | lsm.c | 97 if (cap != CAP_SETUID && cap != CAP_SETGID) in safesetid_security_capable() 109 case CAP_SETUID: in safesetid_security_capable()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | capability.h | 158 #define CAP_SETUID 7 macro
|
| /linux-6.15/tools/testing/selftests/clone3/ |
| H A D | clone3_cap_checkpoint_restore.c | 97 cap_value_t cap_values[] = { CAP_SETUID, CAP_SETGID }; in set_capability()
|
| /linux-6.15/security/keys/ |
| H A D | persistent.c | 149 !ns_capable(ns, CAP_SETUID)) in keyctl_get_persistent()
|
| /linux-6.15/tools/testing/selftests/landlock/ |
| H A D | scoped_signal_test.c | 358 set_cap(_metadata, CAP_SETUID); in TEST() 373 clear_cap(_metadata, CAP_SETUID); in TEST()
|
| H A D | common.h | 47 CAP_SETUID, in _init_caps()
|
| /linux-6.15/kernel/ |
| H A D | user_namespace.c | 1131 return map_write(file, buf, size, ppos, CAP_SETUID, in proc_uid_map_write() 1176 if (cap_setid == CAP_SETUID && !verify_root_map(file, ns, new_map)) in new_idmap_permitted() 1185 if (cap_setid == CAP_SETUID) { in new_idmap_permitted()
|
| H A D | sys.c | 566 !ns_capable_setid(old->user_ns, CAP_SETUID)) in __sys_setreuid() 575 !ns_capable_setid(old->user_ns, CAP_SETUID)) in __sys_setreuid() 639 if (ns_capable_setid(old->user_ns, CAP_SETUID)) { in __sys_setuid() 716 !ns_capable_setid(old->user_ns, CAP_SETUID)) in __sys_setresuid() 894 ns_capable_setid(old->user_ns, CAP_SETUID)) { in __sys_setfsuid()
|
| /linux-6.15/tools/testing/selftests/safesetid/ |
| H A D | safesetid-test.c | 464 cap_value_t cap_values[] = {CAP_SETUID, CAP_SETGID}; in drop_caps()
|
| /linux-6.15/net/core/ |
| H A D | scm.c | 59 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && in scm_check_creds()
|
| /linux-6.15/security/ |
| H A D | commoncap.c | 950 if (!ns_capable(new->user_ns, CAP_SETUID) || in cap_bprm_creds_from_file()
|
| /linux-6.15/security/integrity/ima/ |
| H A D | ima_policy.c | 610 if (has_capability_noaudit(current, CAP_SETUID)) { in ima_match_rules()
|