Searched refs:capdata (Results 1 – 6 of 6) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
D | DumpstateInternal.cpp | 98 struct __user_cap_data_struct capdata[2]; in DropRootUser() local 100 memset(&capdata, 0, sizeof(capdata)); in DropRootUser() 104 if (capget(&capheader, &capdata[0]) != 0) { in DropRootUser() 111 bool has_cap_syslog = (capdata[cap_syslog_index].effective & cap_syslog_mask) != 0; in DropRootUser() 113 memset(&capdata, 0, sizeof(capdata)); in DropRootUser() 116 capdata[cap_syslog_index].permitted |= cap_syslog_mask; in DropRootUser() 117 capdata[cap_syslog_index].effective |= cap_syslog_mask; in DropRootUser() 122 capdata[cap_block_suspend_index].permitted |= cap_block_suspend_mask; in DropRootUser() 123 capdata[cap_block_suspend_index].effective |= cap_block_suspend_mask; in DropRootUser() 125 if (capset(&capheader, &capdata[0]) != 0) { in DropRootUser() [all …]
|
/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 | 645 __user_cap_data_struct capdata[2]; in SetInheritable() local 646 if (capget(&capheader, &capdata[0]) == -1) { in SetInheritable() 650 capdata[0].inheritable = inheritable; in SetInheritable() 651 capdata[1].inheritable = inheritable >> 32; in SetInheritable() 653 if (capset(&capheader, &capdata[0]) == -1) { in SetInheritable() 665 __user_cap_data_struct capdata[2]; in SetCapabilities() local 666 memset(&capdata, 0, sizeof(capdata)); in SetCapabilities() 667 capdata[0].effective = effective; in SetCapabilities() 668 capdata[1].effective = effective >> 32; in SetCapabilities() 669 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 | 1192 struct __user_cap_data_struct capdata[2]; in drop_capabilities() local 1194 memset(&capdata, 0, sizeof(capdata)); in drop_capabilities() 1196 if (capset(&capheader, &capdata[0]) < 0) { in drop_capabilities()
|