diff --git a/bootstat.te b/bootstat.te index 14b4ecebac5902e6dd1fbd34372875bbfa313cfb..44a8c91b87d56184975ce914249b017d81f5bb40 100644 --- a/bootstat.te +++ b/bootstat.te @@ -7,3 +7,6 @@ init_daemon_domain(bootstat) # Allow persistent storage in /data/misc/bootstat. allow bootstat bootstat_data_file:dir rw_dir_perms; allow bootstat bootstat_data_file:file create_file_perms; + +# Read access to pseudo filesystems (for /proc/uptime). +r_dir_file(bootstat, proc) \ No newline at end of file diff --git a/file_contexts b/file_contexts index 78964cbf627702aade11566391b0645dc4cf1587..0a7565949599f22372e97d806e4ec22348ae388b 100644 --- a/file_contexts +++ b/file_contexts @@ -154,6 +154,7 @@ /system/bin/sh -- u:object_r:shell_exec:s0 /system/bin/run-as -- u:object_r:runas_exec:s0 /system/bin/bootanimation u:object_r:bootanim_exec:s0 +/system/bin/bootstat u:object_r:bootstat_exec:s0 /system/bin/app_process32 u:object_r:zygote_exec:s0 /system/bin/app_process64 u:object_r:zygote_exec:s0 /system/bin/servicemanager u:object_r:servicemanager_exec:s0