Skip to content
Snippets Groups Projects
Commit a9ccd7dc authored by Stephen Smalley's avatar Stephen Smalley Committed by Android Git Automerger
Browse files

am af47ebb6: Label /dev/fscklogs and allow system_server access to it.

* commit 'af47ebb6':
  Label /dev/fscklogs and allow system_server access to it.
parents c1468d45 af47ebb6
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ type radio_device, dev_type; ...@@ -15,6 +15,7 @@ type radio_device, dev_type;
type ram_device, dev_type; type ram_device, dev_type;
type console_device, dev_type; type console_device, dev_type;
type cpuctl_device, dev_type; type cpuctl_device, dev_type;
type fscklogs, dev_type;
type full_device, dev_type; type full_device, dev_type;
type graphics_device, dev_type; type graphics_device, dev_type;
type hw_random_device, dev_type; type hw_random_device, dev_type;
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0 /dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
/dev/device-mapper u:object_r:dm_device:s0 /dev/device-mapper u:object_r:dm_device:s0
/dev/eac u:object_r:audio_device:s0 /dev/eac u:object_r:audio_device:s0
/dev/fscklogs(/.*)? u:object_r:fscklogs:s0
/dev/full u:object_r:full_device:s0 /dev/full u:object_r:full_device:s0
/dev/fuse u:object_r:fuse_device:s0 /dev/fuse u:object_r:fuse_device:s0
/dev/graphics(/.*)? u:object_r:graphics_device:s0 /dev/graphics(/.*)? u:object_r:graphics_device:s0
......
...@@ -212,3 +212,8 @@ allow system_server hw_random_device:chr_file r_file_perms; ...@@ -212,3 +212,8 @@ allow system_server hw_random_device:chr_file r_file_perms;
# Access to wake locks # Access to wake locks
allow system_server sysfs_wake_lock:file rw_file_perms; allow system_server sysfs_wake_lock:file rw_file_perms;
# Read and delete files under /dev/fscklogs.
r_dir_file(system_server, fscklogs)
allow system_server fscklogs:dir { write remove_name };
allow system_server fscklogs:file unlink;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment