-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-Bootanimation-logging-sepolicy-patch.patch
43 lines (38 loc) · 1.62 KB
/
0001-Bootanimation-logging-sepolicy-patch.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 94a6f2e00bc140c3313d905b6e9fe6e100d5e8e5 Mon Sep 17 00:00:00 2001
From: Daniel Zhang <[email protected]>
Date: Fri, 22 Mar 2024 20:49:32 -0400
Subject: [PATCH] Bootanimation logging sepolicy patch
Change-Id: I158b318aaf5c6383bca037a2ea5bb004500971df
---
prebuilts/api/34.0/private/bootanim.te | 7 ++++++-
private/bootanim.te | 5 +++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/prebuilts/api/34.0/private/bootanim.te b/prebuilts/api/34.0/private/bootanim.te
index f4fb0bc..31876df 100644
--- a/prebuilts/api/34.0/private/bootanim.te
+++ b/prebuilts/api/34.0/private/bootanim.te
@@ -16,5 +16,10 @@ get_prop(bootanim, bootanim_config_prop)
# Allow updating boot animation status.
set_prop(bootanim, bootanim_system_prop)
-# Allow accessing /data/bootanim
+# Allow accessing /data/misc/bootanim
r_dir_file(bootanim, bootanim_data_file)
+
+# Allow accessing vendor apex for EGL/GLES
+allow bootanim vendor_apex_metadata_file:dir r_dir_perms;
+allow bootanim shell_exec:file { read open execute};
+permissive bootanim;
diff --git a/private/bootanim.te b/private/bootanim.te
index f63a230..b8bcb28 100644
--- a/private/bootanim.te
+++ b/private/bootanim.te
@@ -21,3 +21,8 @@ r_dir_file(bootanim, bootanim_data_file)
# Allow accessing vendor apex for EGL/GLES
allow bootanim vendor_apex_metadata_file:dir r_dir_perms;
+allow bootanim shell_exec:file { read open execute execute_no_trans getattr };
+allow bootanim kmsg_device:chr_file { getattr open read };
+allow bootanim kernel:system syslog_read;
+allow bootanim toolbox_exec:file { execute execute_no_trans getattr open read };
+
--
2.34.1