Searched refs:capheader (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/jni/ |
D | com_android_internal_os_Zygote.cpp | 239 __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()
|
D | android_util_AssetManager.cpp | 145 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/ |
D | utils.cpp | 843 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/ |
D | commands.cpp | 1078 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()
|