summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rubin Xu <rubinxu@google.com> 2022-05-24 23:23:10 +0100
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2022-05-25 20:54:27 +0000
commitbcb0741c91ae9af3b65b8fc7a07e3f4dec54e7f5 (patch)
tree495aad02248176111e1fc1df9abf6d666bd001d1
parentc56fb0fdebdb77b0ad32d53f41def89c9c45a811 (diff)
Map WRITE_SECURITY_LOG permission to gid
Map WRITE_SECURITY_LOG to AID_SECURITY_LOG_WRITE which is how logd controls access to security log buffer. Bug: 232283779 Test: manual Change-Id: Ifde2e5192326f0811807dcb05563b1b5b63077ce (cherry picked from commit e806776e54bf9c9972022e326626d95e9ba71129) Merged-In: Ifde2e5192326f0811807dcb05563b1b5b63077ce
-rw-r--r--data/etc/platform.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/etc/platform.xml b/data/etc/platform.xml
index 61bb1ee2561f..75e188ff37bb 100644
--- a/data/etc/platform.xml
+++ b/data/etc/platform.xml
@@ -120,6 +120,10 @@
<group gid="reserved_disk" />
</permission>
+ <permission name="android.permission.WRITE_SECURITY_LOG">
+ <group gid="security_log" />
+ </permission>
+
<!-- These are permissions that were mapped to gids but we need
to keep them here until an upgrade from L to the current
version is to be supported. These permissions are built-in