summaryrefslogtreecommitdiff
path: root/sepolicy/system_server.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/system_server.te')
-rw-r--r--sepolicy/system_server.te8
1 files changed, 8 insertions, 0 deletions
diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te
new file mode 100644
index 0000000..ce89613
--- /dev/null
+++ b/sepolicy/system_server.te
@@ -0,0 +1,8 @@
+# TODO(b/73123675): BatterySaver needs access to cpufreq. Remove this access
+# once cpufreq functionality is hidden behind a HAL.
+allow system_server sysfs_devices_system_cpu:file w_file_perms;
+dontaudit system_server self:capability sys_module;
+
+# audit2allow
+allow system_server same_process_hal_file:file { getattr map open read };
+allow system_server sysfs_mdss:file { getattr open read };