Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab60ca58 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Add new caps from kernel 5.8.

Test: Builds and boots on a bonito.
Change-Id: I8dff4818bb98be3d731256be100a1c4aed4d414c
parent fe8dec04
Loading
Loading
Loading
Loading
+46 −38
Original line number Diff line number Diff line
@@ -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__)