Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/
Dinstalld.c616 struct __user_cap_data_struct capdata[2]; in drop_privileges() local
618 memset(&capdata, 0, sizeof(capdata)); in drop_privileges()
622 capdata[CAP_TO_INDEX(CAP_DAC_OVERRIDE)].permitted |= CAP_TO_MASK(CAP_DAC_OVERRIDE); in drop_privileges()
623 capdata[CAP_TO_INDEX(CAP_CHOWN)].permitted |= CAP_TO_MASK(CAP_CHOWN); in drop_privileges()
624 capdata[CAP_TO_INDEX(CAP_SETUID)].permitted |= CAP_TO_MASK(CAP_SETUID); in drop_privileges()
625 capdata[CAP_TO_INDEX(CAP_SETGID)].permitted |= CAP_TO_MASK(CAP_SETGID); in drop_privileges()
626 capdata[CAP_TO_INDEX(CAP_FOWNER)].permitted |= CAP_TO_MASK(CAP_FOWNER); in drop_privileges()
628 capdata[0].effective = capdata[0].permitted; in drop_privileges()
629 capdata[1].effective = capdata[1].permitted; in drop_privileges()
630 capdata[0].inheritable = 0; in drop_privileges()
[all …]
Dcommands.c1030 struct __user_cap_data_struct capdata[2]; in dexopt() local
1032 memset(&capdata, 0, sizeof(capdata)); in dexopt()
1034 if (capset(&capheader, &capdata[0]) < 0) { in dexopt()
/frameworks/native/cmds/dumpstate/
Ddumpstate.c515 struct __user_cap_data_struct capdata[2]; in main() local
517 memset(&capdata, 0, sizeof(capdata)); in main()
521 capdata[CAP_TO_INDEX(CAP_SYSLOG)].permitted = CAP_TO_MASK(CAP_SYSLOG); in main()
522 capdata[CAP_TO_INDEX(CAP_SYSLOG)].effective = CAP_TO_MASK(CAP_SYSLOG); in main()
523 capdata[0].inheritable = 0; in main()
524 capdata[1].inheritable = 0; in main()
526 if (capset(&capheader, &capdata[0]) < 0) { in main()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp231 __user_cap_data_struct capdata[2]; in SetCapabilities() local
232 memset(&capdata, 0, sizeof(capdata)); in SetCapabilities()
233 capdata[0].effective = effective; in SetCapabilities()
234 capdata[1].effective = effective >> 32; in SetCapabilities()
235 capdata[0].permitted = permitted; in SetCapabilities()
236 capdata[1].permitted = permitted >> 32; in SetCapabilities()
238 if (capset(&capheader, &capdata[0]) == -1) { in SetCapabilities()
Dandroid_util_AssetManager.cpp135 struct __user_cap_data_struct capdata; in verifySystemIdmaps() local
138 memset(&capdata, 0, sizeof(capdata)); in verifySystemIdmaps()
143 if (capget(&capheader, &capdata) != 0) { in verifySystemIdmaps()
148 capdata.effective = capdata.permitted; in verifySystemIdmaps()
149 if (capset(&capheader, &capdata) != 0) { in verifySystemIdmaps()