Merge "Add sysfs_batteryinfo label."

am: f02db47bc2

* commit 'f02db47bc2024a871a48f4afc5e73bd2eab1226e':
  Add sysfs_batteryinfo label.
This commit is contained in:
Daniel Cashman 2016-01-06 01:23:03 +00:00 committed by android-build-merger
commit 8cac951328
3 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@ type selinuxfs, fs_type, mlstrustedobject;
type cgroup, fs_type, mlstrustedobject;
type sysfs, fs_type, sysfs_type, mlstrustedobject;
type sysfs_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_batteryinfo, fs_type, sysfs_type;
type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_wake_lock, fs_type, sysfs_type;

View File

@ -16,6 +16,8 @@ binder_call(healthd, system_server)
# TODO: Split into a separate type?
allow healthd sysfs:file write;
allow healthd sysfs_batteryinfo:file r_file_perms;
###
### healthd: charger mode
###

View File

@ -119,6 +119,8 @@ allow shell bootchart_data_file:file create_file_perms;
# Make sure strace works for the non-privileged shell user
allow shell self:process ptrace;
# allow shell to get battery info
allow shell sysfs_batteryinfo:file r_file_perms;
# Allow access to ion memory allocation device.
allow shell ion_device:chr_file rw_file_perms;