Searched refs:capdata (Results 1 – 6 of 6) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
D | DumpstateInternal.cpp | 97 struct __user_cap_data_struct capdata[2]; in DropRootUser() local 99 memset(&capdata, 0, sizeof(capdata)); in DropRootUser() 103 if (capget(&capheader, &capdata[0]) != 0) { in DropRootUser() 110 bool has_cap_syslog = (capdata[cap_syslog_index].effective & cap_syslog_mask) != 0; in DropRootUser() 112 memset(&capdata, 0, sizeof(capdata)); in DropRootUser() 115 capdata[cap_syslog_index].permitted |= cap_syslog_mask; in DropRootUser() 116 capdata[cap_syslog_index].effective |= cap_syslog_mask; in DropRootUser() 119 if (capset(&capheader, &capdata[0]) != 0) { in DropRootUser() 120 MYLOGE("capset({%#x, %#x}) failed: %s\n", capdata[0].effective, in DropRootUser() 121 capdata[1].effective, strerror(errno)); in DropRootUser()
|
/frameworks/native/services/vr/performanced/ |
D | main.cpp | 28 struct __user_cap_data_struct capdata[kMaxCapNumber]; in main() local 51 memset(&capdata, 0, sizeof(capdata)); in main() 53 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_SYS_NICE); in main() 54 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].permitted |= CAP_TO_MASK(CAP_SYS_NICE); in main() 57 ret = capset(&capheader, capdata); in main()
|
/frameworks/native/cmds/installd/tests/ |
D | test_utils.h | 145 struct __user_cap_data_struct capdata[2]; in DropCapabilities() local 147 memset(&capdata, 0, sizeof(capdata)); in DropCapabilities() 149 if (capset(&capheader, &capdata[0]) < 0) { in DropCapabilities()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_Zygote.cpp | 569 __user_cap_data_struct capdata[2]; in SetInheritable() local 570 if (capget(&capheader, &capdata[0]) == -1) { in SetInheritable() 574 capdata[0].inheritable = inheritable; in SetInheritable() 575 capdata[1].inheritable = inheritable >> 32; in SetInheritable() 577 if (capset(&capheader, &capdata[0]) == -1) { in SetInheritable() 589 __user_cap_data_struct capdata[2]; in SetCapabilities() local 590 memset(&capdata, 0, sizeof(capdata)); in SetCapabilities() 591 capdata[0].effective = effective; in SetCapabilities() 592 capdata[1].effective = effective >> 32; in SetCapabilities() 593 capdata[0].permitted = permitted; in SetCapabilities() [all …]
|
D | android_util_AssetManager.cpp | 136 struct __user_cap_data_struct capdata; in NativeVerifySystemIdmaps() local 139 memset(&capdata, 0, sizeof(capdata)); in NativeVerifySystemIdmaps() 144 if (capget(&capheader, &capdata) != 0) { in NativeVerifySystemIdmaps() 149 capdata.effective = capdata.permitted; in NativeVerifySystemIdmaps() 150 if (capset(&capheader, &capdata) != 0) { in NativeVerifySystemIdmaps()
|
/frameworks/native/cmds/installd/ |
D | utils.cpp | 1144 struct __user_cap_data_struct capdata[2]; in drop_capabilities() local 1146 memset(&capdata, 0, sizeof(capdata)); in drop_capabilities() 1148 if (capset(&capheader, &capdata[0]) < 0) { in drop_capabilities()
|