Searched refs:capdata (Results 1 - 6 of 6) sorted by relevance

/frameworks/native/services/vr/performanced/
H A Dmain.cpp28 struct __user_cap_data_struct capdata[kMaxCapNumber]; local
51 memset(&capdata, 0, sizeof(capdata));
53 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].effective |= CAP_TO_MASK(CAP_SYS_NICE);
54 capdata[CAP_TO_INDEX(CAP_SYS_NICE)].permitted |= CAP_TO_MASK(CAP_SYS_NICE);
57 ret = capset(&capheader, capdata);
/frameworks/native/cmds/dumpstate/
H A DDumpstateInternal.cpp97 struct __user_cap_data_struct capdata[2]; local
99 memset(&capdata, 0, sizeof(capdata));
103 if (capget(&capheader, &capdata[0]) != 0) {
110 bool has_cap_syslog = (capdata[cap_syslog_index].effective & cap_syslog_mask) != 0;
112 memset(&capdata, 0, sizeof(capdata));
115 capdata[cap_syslog_index].permitted |= cap_syslog_mask;
116 capdata[cap_syslog_index].effective |= cap_syslog_mask;
119 if (capset(&capheader, &capdata[
[all...]
/frameworks/native/cmds/installd/tests/
H A Dtest_utils.h124 struct __user_cap_data_struct capdata[2]; local
126 memset(&capdata, 0, sizeof(capdata));
128 if (capset(&capheader, &capdata[0]) < 0) {
/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp301 __user_cap_data_struct capdata[2]; local
302 if (capget(&capheader, &capdata[0]) == -1) {
307 capdata[0].inheritable = inheritable;
308 capdata[1].inheritable = inheritable >> 32;
310 if (capset(&capheader, &capdata[0]) == -1) {
325 __user_cap_data_struct capdata[2]; local
326 memset(&capdata, 0, sizeof(capdata));
327 capdata[0].effective = effective;
328 capdata[
788 __user_cap_data_struct capdata[2]; local
[all...]
H A Dandroid_util_AssetManager.cpp122 struct __user_cap_data_struct capdata; local
125 memset(&capdata, 0, sizeof(capdata));
130 if (capget(&capheader, &capdata) != 0) {
135 capdata.effective = capdata.permitted;
136 if (capset(&capheader, &capdata) != 0) {
/frameworks/native/cmds/installd/
H A Ddexopt.cpp725 struct __user_cap_data_struct capdata[2]; local
727 memset(&capdata, 0, sizeof(capdata));
729 if (capset(&capheader, &capdata[0]) < 0) {

Completed in 19 milliseconds