Searched refs:CAP_TO_MASK (Results 1 – 3 of 3) sorted by relevance
113 #define CAP_TO_MASK(x) (1 << ((x)&31)) macro
40 auto nice_mask = CAP_TO_MASK(CAP_SYS_NICE); in hasCapSysNice()
1133 capdata[CAP_TO_INDEX(i)].permitted |= CAP_TO_MASK(i); in TEST_F()1134 capdata[CAP_TO_INDEX(i)].effective |= CAP_TO_MASK(i); in TEST_F()1138 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].permitted &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F()1139 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].effective &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F()