Searched refs:cred_has_capability (Results 1 – 1 of 1) sorted by relevance
/linux-6.1.9/security/selinux/ |
D | hooks.c | 1576 static int cred_has_capability(const struct cred *cred, in cred_has_capability() function 2121 return cred_has_capability(cred, cap, opts, ns == &init_user_ns); in selinux_capable() 2201 rc = cred_has_capability(current_cred(), CAP_SYS_ADMIN, in selinux_vm_enough_memory() 3143 if (cred_has_capability(cred, CAP_MAC_ADMIN, opts, true)) in has_cap_mac_admin() 3675 error = cred_has_capability(cred, CAP_SYS_TTY_CONFIG, in selinux_file_ioctl()
|