/frameworks/native/cmds/installd/ |
installd.c | 501 struct __user_cap_data_struct capdata[2]; local 503 memset(&capdata, 0, sizeof(capdata)); 507 capdata[CAP_TO_INDEX(CAP_DAC_OVERRIDE)].permitted |= CAP_TO_MASK(CAP_DAC_OVERRIDE); 508 capdata[CAP_TO_INDEX(CAP_CHOWN)].permitted |= CAP_TO_MASK(CAP_CHOWN); 509 capdata[CAP_TO_INDEX(CAP_SETUID)].permitted |= CAP_TO_MASK(CAP_SETUID); 510 capdata[CAP_TO_INDEX(CAP_SETGID)].permitted |= CAP_TO_MASK(CAP_SETGID); 512 capdata[0].effective = capdata[0].permitted; 513 capdata[1].effective = capdata[1].permitted [all...] |
commands.c | 728 struct __user_cap_data_struct capdata[2]; local 730 memset(&capdata, 0, sizeof(capdata)); 732 if (capset(&capheader, &capdata[0]) < 0) { [all...] |
/frameworks/native/cmds/dumpstate/ |
dumpstate.c | 425 struct __user_cap_data_struct capdata[2]; local 427 memset(&capdata, 0, sizeof(capdata)); 431 capdata[CAP_TO_INDEX(CAP_SYSLOG)].permitted = CAP_TO_MASK(CAP_SYSLOG); 432 capdata[CAP_TO_INDEX(CAP_SYSLOG)].effective = CAP_TO_MASK(CAP_SYSLOG); 433 capdata[0].inheritable = 0; 434 capdata[1].inheritable = 0; 436 if (capset(&capheader, &capdata[0]) < 0) {
|
/frameworks/base/core/jni/ |
com_android_internal_os_ZygoteInit.cpp | 166 struct __user_cap_data_struct capdata; local 170 memset (&capdata, 0, sizeof(capdata)); 175 err = capget (&capheader, &capdata); 182 return (jlong) capdata.permitted;
|
/art/runtime/native/ |
dalvik_system_Zygote.cc | 233 __user_cap_data_struct capdata; local 236 memset(&capdata, 0, sizeof(capdata)); 241 capdata.effective = effective; 242 capdata.permitted = permitted; 244 if (capset(&capheader, &capdata) != 0) {
|
/dalvik/vm/native/ |
dalvik_system_Zygote.cpp | 431 struct __user_cap_data_struct capdata; local 434 memset(&capdata, 0, sizeof(capdata)); 439 capdata.effective = effective; 440 capdata.permitted = permitted; 443 if (capset(&capheader, &capdata) != 0)
|