Home
last modified time | relevance | path

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

/frameworks/native/services/vr/performanced/
Dmain.cpp27 struct __user_cap_header_struct capheader; in main() local
50 memset(&capheader, 0, sizeof(capheader)); in main()
52 capheader.version = _LINUX_CAPABILITY_VERSION_3; in main()
57 ret = capset(&capheader, capdata); in main()
/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp97 struct __user_cap_header_struct capheader; in DropRootUser() local
99 memset(&capheader, 0, sizeof(capheader)); in DropRootUser()
101 capheader.version = _LINUX_CAPABILITY_VERSION_3; in DropRootUser()
102 capheader.pid = 0; in DropRootUser()
104 if (capget(&capheader, &capdata[0]) != 0) { in DropRootUser()
125 if (capset(&capheader, &capdata[0]) != 0) { in DropRootUser()
/frameworks/native/cmds/installd/tests/
Dtest_utils.h144 struct __user_cap_header_struct capheader; in DropCapabilities() local
146 memset(&capheader, 0, sizeof(capheader)); in DropCapabilities()
148 capheader.version = _LINUX_CAPABILITY_VERSION_3; in DropCapabilities()
149 if (capset(&capheader, &capdata[0]) < 0) { in DropCapabilities()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp706 __user_cap_header_struct capheader; in SetInheritable() local
707 memset(&capheader, 0, sizeof(capheader)); in SetInheritable()
708 capheader.version = _LINUX_CAPABILITY_VERSION_3; in SetInheritable()
709 capheader.pid = 0; in SetInheritable()
712 if (capget(&capheader, &capdata[0]) == -1) { in SetInheritable()
719 if (capset(&capheader, &capdata[0]) == -1) { in SetInheritable()
726 __user_cap_header_struct capheader; in SetCapabilities() local
727 memset(&capheader, 0, sizeof(capheader)); in SetCapabilities()
728 capheader.version = _LINUX_CAPABILITY_VERSION_3; in SetCapabilities()
729 capheader.pid = 0; in SetCapabilities()
[all …]
/frameworks/native/cmds/installd/
Dutils.cpp1410 struct __user_cap_header_struct capheader; in drop_capabilities() local
1412 memset(&capheader, 0, sizeof(capheader)); in drop_capabilities()
1414 capheader.version = _LINUX_CAPABILITY_VERSION_3; in drop_capabilities()
1415 if (capset(&capheader, &capdata[0]) < 0) { in drop_capabilities()