Skip to content
Snippets Groups Projects
Commit 39c198ac authored by James Hawkins's avatar James Hawkins
Browse files

bootstat: Implement the SELinux policy to allow reading/writing to

/data/misc/bootstat.

BUG: 21724738
Change-Id: I2789f57cc8182af1a7c33672ef82297f32f54e2e
parent 589ffaf6
No related branches found
No related tags found
No related merge requests found
# bootstat command
type bootstat, domain;
type bootstat_exec, exec_type, file_type;
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;
...@@ -111,6 +111,7 @@ type storage_stub_file, file_type; ...@@ -111,6 +111,7 @@ type storage_stub_file, file_type;
type adb_keys_file, file_type, data_file_type; type adb_keys_file, file_type, data_file_type;
type audio_data_file, file_type, data_file_type; type audio_data_file, file_type, data_file_type;
type bluetooth_data_file, file_type, data_file_type; type bluetooth_data_file, file_type, data_file_type;
type bootstat_data_file, file_type, data_file_type;
type boottrace_data_file, file_type, data_file_type; type boottrace_data_file, file_type, data_file_type;
type camera_data_file, file_type, data_file_type; type camera_data_file, file_type, data_file_type;
type gatekeeper_data_file, file_type, data_file_type; type gatekeeper_data_file, file_type, data_file_type;
......
...@@ -251,6 +251,7 @@ ...@@ -251,6 +251,7 @@
# Misc data # Misc data
/data/misc/adb(/.*)? u:object_r:adb_keys_file:s0 /data/misc/adb(/.*)? u:object_r:adb_keys_file:s0
/data/misc/audio(/.*)? u:object_r:audio_data_file:s0 /data/misc/audio(/.*)? u:object_r:audio_data_file:s0
/data/misc/bootstat(/.*)? u:object_r:bootstat_data_file:s0
/data/misc/boottrace(/.*)? u:object_r:boottrace_data_file:s0 /data/misc/boottrace(/.*)? u:object_r:boottrace_data_file:s0
/data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0 /data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0
/data/misc/bluedroid(/.*)? u:object_r:bluetooth_data_file:s0 /data/misc/bluedroid(/.*)? u:object_r:bluetooth_data_file:s0
......
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