Searched refs:CAP_TO_INDEX (Results 1 – 4 of 4) sorted by relevance
98 #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))
22 int cap_index = CAP_TO_INDEX(CAP_SYS_ADMIN); in BPF_PROG()
428 #define CAP_TO_INDEX(x) ((x) >> 5) /* 1 << 5 == bits in __u32 */ macro
1589 switch (CAP_TO_INDEX(cap)) { in cred_has_capability()