Searched refs:capheader (Results 1 – 4 of 4) sorted by relevance
/system/core/trusty/storage/proxy/ |
D | proxy.c | 59 struct __user_cap_header_struct capheader; in drop_privs() local 80 memset(&capheader, 0, sizeof(capheader)); in drop_privs() 82 capheader.version = _LINUX_CAPABILITY_VERSION_3; in drop_privs() 83 capheader.pid = 0; in drop_privs() 88 if (capset(&capheader, &capdata[0]) < 0) { in drop_privs()
|
/system/core/debuggerd/handler/ |
D | debuggerd_handler.cpp | 236 __user_cap_header_struct capheader; in raise_caps() local 237 memset(&capheader, 0, sizeof(capheader)); in raise_caps() 238 capheader.version = _LINUX_CAPABILITY_VERSION_3; in raise_caps() 239 capheader.pid = 0; in raise_caps() 242 if (capget(&capheader, &capdata[0]) == -1) { in raise_caps() 251 if (capset(&capheader, &capdata[0]) == -1) { in raise_caps()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 184 __user_cap_header_struct capheader; in drop_capabilities() local 185 memset(&capheader, 0, sizeof(capheader)); in drop_capabilities() 186 capheader.version = _LINUX_CAPABILITY_VERSION_3; in drop_capabilities() 187 capheader.pid = 0; in drop_capabilities() 192 if (capset(&capheader, &capdata[0]) == -1) { in drop_capabilities()
|
D | debuggerd_test.cpp | 496 __user_cap_header_struct capheader; in TEST_F() local 498 memset(&capheader, 0, sizeof(capheader)); in TEST_F() 501 capheader.version = _LINUX_CAPABILITY_VERSION_3; in TEST_F() 502 capheader.pid = 0; in TEST_F() 515 if (capset(&capheader, &capdata[0]) != 0) { in TEST_F()
|