Searched refs:CAP_TO_MASK (Results 1 – 7 of 7) sorted by relevance
133 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()
112 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()
199 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()
113 #define CAP_TO_MASK(x) (1 << ((x) & 31)) macro
152 minijail_instance->UseCapabilities(jail, CAP_TO_MASK(CAP_NET_BIND_SERVICE)); in main()
130 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()
51 CAP_TO_MASK(CAP_NET_ADMIN) | CAP_TO_MASK(CAP_NET_RAW);