Merge "Remove obsolete <linux/capabilities.h> workarounds." into main am: b0bff22429 am: fd605f23d1 am: e8c6297e96
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2770138 Change-Id: Ic878e7c2b6c18b60fe8ca1529e5c6846df8e35d2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
7b986c5477
2 changed files with 0 additions and 17 deletions
|
|
@ -66,18 +66,12 @@ 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),
|
||||
CAP_MAP_ENTRY(CHECKPOINT_RESTORE),
|
||||
#endif
|
||||
};
|
||||
|
||||
#if defined(__BIONIC__)
|
||||
static_assert(CAP_LAST_CAP == CAP_CHECKPOINT_RESTORE, "CAP_LAST_CAP is not CAP_CHECKPOINT_RESTORE");
|
||||
#else
|
||||
static_assert(CAP_LAST_CAP == CAP_AUDIT_READ, "CAP_LAST_CAP is not CAP_AUDIT_READ");
|
||||
#endif
|
||||
|
||||
static bool ComputeCapAmbientSupported() {
|
||||
#if defined(__ANDROID__)
|
||||
|
|
|
|||
|
|
@ -21,17 +21,6 @@
|
|||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
#if !defined(__ANDROID__)
|
||||
#ifndef CAP_BLOCK_SUSPEND
|
||||
#define CAP_BLOCK_SUSPEND 36
|
||||
#endif
|
||||
#ifndef CAP_AUDIT_READ
|
||||
#define CAP_AUDIT_READ 37
|
||||
#endif
|
||||
#undef CAP_LAST_CAP
|
||||
#define CAP_LAST_CAP CAP_AUDIT_READ
|
||||
#endif
|
||||
|
||||
namespace android {
|
||||
namespace init {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue