Home
last modified time | relevance | path

Searched refs:CAP_TO_MASK (Results 1 – 7 of 7) 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/connectivity/apmanager/
Dmain.cc112 minijail->UseCapabilities(jail, CAP_TO_MASK(CAP_NET_ADMIN) | in DropPrivileges()
113 CAP_TO_MASK(CAP_NET_RAW) | in DropPrivileges()
114 CAP_TO_MASK(CAP_NET_BIND_SERVICE)); in DropPrivileges()
/system/connectivity/shill/dhcp/
Ddhcp_config.cc199 uint64_t capmask = CAP_TO_MASK(CAP_NET_BIND_SERVICE) | in Start()
200 CAP_TO_MASK(CAP_NET_BROADCAST) | in Start()
201 CAP_TO_MASK(CAP_NET_ADMIN) | in Start()
202 CAP_TO_MASK(CAP_NET_RAW); in Start()
/system/core/include/private/
Dandroid_filesystem_capability.h113 #define CAP_TO_MASK(x) (1 << ((x) & 31)) macro
/system/webservd/webservd/
Dmain.cc152 minijail_instance->UseCapabilities(jail, CAP_TO_MASK(CAP_NET_BIND_SERVICE)); in main()
/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()
/system/firewalld/
Diptables.cc51 CAP_TO_MASK(CAP_NET_ADMIN) | CAP_TO_MASK(CAP_NET_RAW);