Searched refs:CAP_TO_MASK (Results 1 – 4 of 4) sorted by relevance
99 capdata[CAP_TO_INDEX(CAP_SYS_RAWIO)].permitted = CAP_TO_MASK(CAP_SYS_RAWIO); in drop_privs()100 capdata[CAP_TO_INDEX(CAP_SYS_RAWIO)].effective = CAP_TO_MASK(CAP_SYS_RAWIO); in drop_privs()
113 #define CAP_TO_MASK(x) (1 << ((x)&31)) macro
40 auto nice_mask = CAP_TO_MASK(CAP_SYS_NICE); in hasCapSysNice()
1098 capdata[CAP_TO_INDEX(i)].permitted |= CAP_TO_MASK(i); in TEST_F()1099 capdata[CAP_TO_INDEX(i)].effective |= CAP_TO_MASK(i); in TEST_F()1103 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].permitted &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F()1104 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].effective &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F()