Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp239 __user_cap_header_struct capheader; in SetCapabilities() local
240 memset(&capheader, 0, sizeof(capheader)); in SetCapabilities()
241 capheader.version = _LINUX_CAPABILITY_VERSION_3; in SetCapabilities()
242 capheader.pid = 0; in SetCapabilities()
251 if (capset(&capheader, &capdata[0]) == -1) { in SetCapabilities()
Dandroid_util_AssetManager.cpp145 struct __user_cap_header_struct capheader; in verifySystemIdmaps() local
148 memset(&capheader, 0, sizeof(capheader)); in verifySystemIdmaps()
151 capheader.version = _LINUX_CAPABILITY_VERSION; in verifySystemIdmaps()
152 capheader.pid = 0; in verifySystemIdmaps()
154 if (capget(&capheader, &capdata) != 0) { in verifySystemIdmaps()
160 if (capset(&capheader, &capdata) != 0) { in verifySystemIdmaps()
/frameworks/native/cmds/dumpstate/
Dutils.cpp843 struct __user_cap_header_struct capheader; in drop_root_user() local
845 memset(&capheader, 0, sizeof(capheader)); in drop_root_user()
847 capheader.version = _LINUX_CAPABILITY_VERSION_3; in drop_root_user()
848 capheader.pid = 0; in drop_root_user()
855 if (capset(&capheader, &capdata[0]) < 0) { in drop_root_user()
/frameworks/native/cmds/installd/
Dcommands.cpp1078 struct __user_cap_header_struct capheader; in drop_capabilities() local
1080 memset(&capheader, 0, sizeof(capheader)); in drop_capabilities()
1082 capheader.version = _LINUX_CAPABILITY_VERSION_3; in drop_capabilities()
1083 if (capset(&capheader, &capdata[0]) < 0) { in drop_capabilities()