Searched refs:capdata (Results 1 – 4 of 4) sorted by relevance
/system/core/debuggerd/handler/ |
D | debuggerd_handler.cpp | 209 __user_cap_data_struct capdata[2]; in raise_caps() local 210 if (capget(&capheader, &capdata[0]) == -1) { in raise_caps() 214 if (capdata[0].permitted != capdata[0].inheritable || in raise_caps() 215 capdata[1].permitted != capdata[1].inheritable) { in raise_caps() 216 capdata[0].inheritable = capdata[0].permitted; in raise_caps() 217 capdata[1].inheritable = capdata[1].permitted; in raise_caps() 219 if (capset(&capheader, &capdata[0]) == -1) { in raise_caps() 225 uint64_t capmask = capdata[0].inheritable; in raise_caps() 226 capmask |= static_cast<uint64_t>(capdata[1].inheritable) << 32; in raise_caps()
|
/system/core/trusty/storage/proxy/ |
D | proxy.c | 60 struct __user_cap_data_struct capdata[2]; in drop_privs() local 81 memset(&capdata, 0, sizeof(capdata)); in drop_privs() 85 capdata[CAP_TO_INDEX(CAP_SYS_RAWIO)].permitted = CAP_TO_MASK(CAP_SYS_RAWIO); in drop_privs() 86 capdata[CAP_TO_INDEX(CAP_SYS_RAWIO)].effective = CAP_TO_MASK(CAP_SYS_RAWIO); in drop_privs() 88 if (capset(&capheader, &capdata[0]) < 0) { in drop_privs()
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 489 __user_cap_data_struct capdata[2]; in TEST_F() local 491 memset(&capdata, 0, sizeof(capdata)); in TEST_F() 499 capdata[CAP_TO_INDEX(i)].permitted |= CAP_TO_MASK(i); in TEST_F() 500 capdata[CAP_TO_INDEX(i)].effective |= CAP_TO_MASK(i); in TEST_F() 504 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].permitted &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F() 505 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].effective &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F() 507 if (capset(&capheader, &capdata[0]) != 0) { in TEST_F()
|
D | crash_dump.cpp | 185 __user_cap_data_struct capdata[2]; in drop_capabilities() local 186 memset(&capdata, 0, sizeof(capdata)); in drop_capabilities() 188 if (capset(&capheader, &capdata[0]) == -1) { in drop_capabilities()
|