Home
last modified time | relevance | path

Searched refs:capdata (Results 1 – 4 of 4) sorted by relevance

/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp226 __user_cap_data_struct capdata[2]; in raise_caps() local
227 if (capget(&capheader, &capdata[0]) == -1) { in raise_caps()
231 if (capdata[0].permitted != capdata[0].inheritable || in raise_caps()
232 capdata[1].permitted != capdata[1].inheritable) { in raise_caps()
233 capdata[0].inheritable = capdata[0].permitted; in raise_caps()
234 capdata[1].inheritable = capdata[1].permitted; in raise_caps()
236 if (capset(&capheader, &capdata[0]) == -1) { in raise_caps()
242 uint64_t capmask = capdata[0].inheritable; in raise_caps()
243 capmask |= static_cast<uint64_t>(capdata[1].inheritable) << 32; in raise_caps()
/system/core/trusty/storage/proxy/
Dproxy.c70 struct __user_cap_data_struct capdata[2]; in drop_privs() local
91 memset(&capdata, 0, sizeof(capdata)); in drop_privs()
95 capdata[CAP_TO_INDEX(CAP_SYS_RAWIO)].permitted = CAP_TO_MASK(CAP_SYS_RAWIO); in drop_privs()
96 capdata[CAP_TO_INDEX(CAP_SYS_RAWIO)].effective = CAP_TO_MASK(CAP_SYS_RAWIO); in drop_privs()
98 if (capset(&capheader, &capdata[0]) < 0) { in drop_privs()
/system/core/debuggerd/libdebuggerd/
Dutility.cpp245 __user_cap_data_struct capdata[2]; local
246 memset(&capdata, 0, sizeof(capdata));
248 if (capset(&capheader, &capdata[0]) == -1) {
/system/core/debuggerd/
Ddebuggerd_test.cpp517 __user_cap_data_struct capdata[2]; in TEST_F() local
519 memset(&capdata, 0, sizeof(capdata)); in TEST_F()
527 capdata[CAP_TO_INDEX(i)].permitted |= CAP_TO_MASK(i); in TEST_F()
528 capdata[CAP_TO_INDEX(i)].effective |= CAP_TO_MASK(i); in TEST_F()
532 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].permitted &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F()
533 capdata[CAP_TO_INDEX(CAP_SYS_PTRACE)].effective &= ~(CAP_TO_MASK(CAP_SYS_PTRACE)); in TEST_F()
535 if (capset(&capheader, &capdata[0]) != 0) { in TEST_F()