Skip to content
Snippets Groups Projects
Commit f306d373 authored by Salvador Martinez's avatar Salvador Martinez
Browse files

Give system_server access to last reboot reason

system_server needs to be able to read the file
last_reboot_reason to see if we need to show
a thermal notification to the user. This change
allows system_server to read, delete, and rename
the file.

Test: Manual
Bug: 30994946
Change-Id: Id73e18768f910c8de0bfc02f1b464e689f4b3955
parent 0d1b2ce1
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,10 @@ allow system_server resourcecache_data_file:dir r_dir_perms; ...@@ -30,6 +30,10 @@ allow system_server resourcecache_data_file:dir r_dir_perms;
# ptrace to processes in the same domain for debugging crashes. # ptrace to processes in the same domain for debugging crashes.
allow system_server self:process ptrace; allow system_server self:process ptrace;
# Read and delete last_reboot_reason file
allow system_server reboot_data_file:file { rename r_file_perms unlink };
allow system_server reboot_data_file:dir { write search open remove_name };
# Child of the zygote. # Child of the zygote.
allow system_server zygote:fd use; allow system_server zygote:fd use;
allow system_server zygote:process sigchld; allow system_server zygote:process sigchld;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment