Loading init/capabilities.cpp +46 −38 Original line number Diff line number Diff line Loading @@ -66,9 +66,17 @@ static const std::map<std::string, int> cap_map = { CAP_MAP_ENTRY(WAKE_ALARM), CAP_MAP_ENTRY(BLOCK_SUSPEND), CAP_MAP_ENTRY(AUDIT_READ), #if defined(__BIONIC__) CAP_MAP_ENTRY(PERFMON), CAP_MAP_ENTRY(BPF), #endif }; #if defined(__BIONIC__) static_assert(CAP_LAST_CAP == CAP_BPF, "CAP_LAST_CAP is not CAP_BPF"); #else static_assert(CAP_LAST_CAP == CAP_AUDIT_READ, "CAP_LAST_CAP is not CAP_AUDIT_READ"); #endif static bool ComputeCapAmbientSupported() { #if defined(__ANDROID__) Loading Loading
init/capabilities.cpp +46 −38 Original line number Diff line number Diff line Loading @@ -66,9 +66,17 @@ static const std::map<std::string, int> cap_map = { CAP_MAP_ENTRY(WAKE_ALARM), CAP_MAP_ENTRY(BLOCK_SUSPEND), CAP_MAP_ENTRY(AUDIT_READ), #if defined(__BIONIC__) CAP_MAP_ENTRY(PERFMON), CAP_MAP_ENTRY(BPF), #endif }; #if defined(__BIONIC__) static_assert(CAP_LAST_CAP == CAP_BPF, "CAP_LAST_CAP is not CAP_BPF"); #else static_assert(CAP_LAST_CAP == CAP_AUDIT_READ, "CAP_LAST_CAP is not CAP_AUDIT_READ"); #endif static bool ComputeCapAmbientSupported() { #if defined(__ANDROID__) Loading