Searched refs:CAP_TO_INDEX (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()
112 #define CAP_TO_INDEX(x) ((x) >> 5) macro
39 auto nice_idx = CAP_TO_INDEX(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()