Searched refs:capdata (Results 1 – 4 of 4) sorted by relevance
/system/core/debuggerd/handler/ |
D | debuggerd_handler.cpp | 227 __user_cap_data_struct capdata[2]; in raise_caps() local 228 if (capget(&capheader, &capdata[0]) == -1) { in raise_caps() 232 if (capdata[0].permitted != capdata[0].inheritable || in raise_caps() 233 capdata[1].permitted != capdata[1].inheritable) { in raise_caps() 234 capdata[0].inheritable = capdata[0].permitted; in raise_caps() 235 capdata[1].inheritable = capdata[1].permitted; in raise_caps() 237 if (capset(&capheader, &capdata[0]) == -1) { in raise_caps() 243 uint64_t capmask = capdata[0].inheritable; in raise_caps() 244 capmask |= static_cast<uint64_t>(capdata[1].inheritable) << 32; in raise_caps()
|
/system/core/trusty/storage/proxy/ |
D | proxy.c | 74 struct __user_cap_data_struct capdata[2]; in drop_privs() local 95 memset(&capdata, 0, sizeof(capdata)); in drop_privs() 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() 102 if (capset(&capheader, &capdata[0]) < 0) { in drop_privs()
|
/system/core/debuggerd/libdebuggerd/ |
D | utility.cpp | 256 __user_cap_data_struct capdata[2]; in drop_capabilities() local 257 memset(&capdata, 0, sizeof(capdata)); in drop_capabilities() 259 if (capset(&capheader, &capdata[0]) == -1) { in drop_capabilities()
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 1088 __user_cap_data_struct capdata[2]; in TEST_F() local 1090 memset(&capdata, 0, sizeof(capdata)); in TEST_F() 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() 1106 if (capset(&capheader, &capdata[0]) != 0) { in TEST_F()
|