Home
last modified time | relevance | path

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

/system/core/trusty/storage/proxy/
Dproxy.c59 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/
Ddebuggerd_handler.cpp236 __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/
Dcrash_dump.cpp184 __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()
Ddebuggerd_test.cpp496 __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()