Home
last modified time | relevance | path

Searched refs:CAP_TO_INDEX (Results 1 – 3 of 3) sorted by relevance

/system/core/run-as/
Drun-as.c133 capdata[CAP_TO_INDEX(CAP_SETUID)].effective |= CAP_TO_MASK(CAP_SETUID); in main()
134 capdata[CAP_TO_INDEX(CAP_SETGID)].effective |= CAP_TO_MASK(CAP_SETGID); in main()
135 capdata[CAP_TO_INDEX(CAP_SETUID)].permitted |= CAP_TO_MASK(CAP_SETUID); in main()
136 capdata[CAP_TO_INDEX(CAP_SETGID)].permitted |= CAP_TO_MASK(CAP_SETGID); in main()
/system/core/include/private/
Dandroid_filesystem_capability.h112 #define CAP_TO_INDEX(x) ((x) >> 5) macro
/system/core/logd/
Dmain.cpp130 capdata[CAP_TO_INDEX(CAP_SYSLOG)].permitted = CAP_TO_MASK(CAP_SYSLOG); in drop_privs()
131 capdata[CAP_TO_INDEX(CAP_AUDIT_CONTROL)].permitted |= CAP_TO_MASK(CAP_AUDIT_CONTROL); in drop_privs()