Home
last modified time | relevance | path

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

/linux-5.19.10/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-5.19.10/include/uapi/linux/
Dcapability.h428 #define CAP_TO_INDEX(x) ((x) >> 5) /* 1 << 5 == bits in __u32 */ macro
/linux-5.19.10/security/selinux/
Dhooks.c1592 switch (CAP_TO_INDEX(cap)) { in cred_has_capability()