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.cpp204 __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/
Dcrash_dump.cpp180 __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()
Ddebuggerd_test.cpp488 __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()