Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dcapability.h98 #define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag))
99 #define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag))
100 #define cap_raised(c, flag) ((c).cap[CAP_TO_INDEX(flag)] & CAP_TO_MASK(flag))
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_deny_namespace.c22 int cap_index = CAP_TO_INDEX(CAP_SYS_ADMIN); in BPF_PROG()
/linux-6.1.9/include/uapi/linux/
Dcapability.h428 #define CAP_TO_INDEX(x) ((x) >> 5) /* 1 << 5 == bits in __u32 */ macro
/linux-6.1.9/security/selinux/
Dhooks.c1589 switch (CAP_TO_INDEX(cap)) { in cred_has_capability()