Searched refs:capdata (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/jni/ |
D | com_android_internal_os_Zygote.cpp | 244 __user_cap_data_struct capdata[2]; in SetCapabilities() local 245 memset(&capdata, 0, sizeof(capdata)); in SetCapabilities() 246 capdata[0].effective = effective; in SetCapabilities() 247 capdata[1].effective = effective >> 32; in SetCapabilities() 248 capdata[0].permitted = permitted; in SetCapabilities() 249 capdata[1].permitted = permitted >> 32; in SetCapabilities() 251 if (capset(&capheader, &capdata[0]) == -1) { in SetCapabilities()
|
D | android_util_AssetManager.cpp | 146 struct __user_cap_data_struct capdata; in verifySystemIdmaps() local 149 memset(&capdata, 0, sizeof(capdata)); in verifySystemIdmaps() 154 if (capget(&capheader, &capdata) != 0) { in verifySystemIdmaps() 159 capdata.effective = capdata.permitted; in verifySystemIdmaps() 160 if (capset(&capheader, &capdata) != 0) { in verifySystemIdmaps()
|
/frameworks/native/cmds/dumpstate/ |
D | utils.cpp | 844 struct __user_cap_data_struct capdata[2]; in drop_root_user() local 846 memset(&capdata, 0, sizeof(capdata)); in drop_root_user() 850 capdata[CAP_TO_INDEX(CAP_SYSLOG)].permitted = CAP_TO_MASK(CAP_SYSLOG); in drop_root_user() 851 capdata[CAP_TO_INDEX(CAP_SYSLOG)].effective = CAP_TO_MASK(CAP_SYSLOG); in drop_root_user() 852 capdata[0].inheritable = 0; in drop_root_user() 853 capdata[1].inheritable = 0; in drop_root_user() 855 if (capset(&capheader, &capdata[0]) < 0) { in drop_root_user()
|
/frameworks/native/cmds/installd/ |
D | commands.cpp | 1079 struct __user_cap_data_struct capdata[2]; in drop_capabilities() local 1081 memset(&capdata, 0, sizeof(capdata)); in drop_capabilities() 1083 if (capset(&capheader, &capdata[0]) < 0) { in drop_capabilities()
|