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 | 204 __user_cap_header_struct capheader; in raise_caps() local 205 memset(&capheader, 0, sizeof(capheader)); in raise_caps() 206 capheader.version = _LINUX_CAPABILITY_VERSION_3; in raise_caps() 207 capheader.pid = 0; in raise_caps() 210 if (capget(&capheader, &capdata[0]) == -1) { in raise_caps() 219 if (capset(&capheader, &capdata[0]) == -1) { in raise_caps()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 180 __user_cap_header_struct capheader; in drop_capabilities() local 181 memset(&capheader, 0, sizeof(capheader)); in drop_capabilities() 182 capheader.version = _LINUX_CAPABILITY_VERSION_3; in drop_capabilities() 183 capheader.pid = 0; in drop_capabilities() 188 if (capset(&capheader, &capdata[0]) == -1) { in drop_capabilities()
|
D | debuggerd_test.cpp | 488 __user_cap_header_struct capheader; in TEST_F() local 490 memset(&capheader, 0, sizeof(capheader)); in TEST_F() 493 capheader.version = _LINUX_CAPABILITY_VERSION_3; in TEST_F() 494 capheader.pid = 0; in TEST_F() 507 if (capset(&capheader, &capdata[0]) != 0) { in TEST_F()
|