Skip to content
Snippets Groups Projects
Commit 96cf6f9f authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "hal_light: add permission to sys/class/leds." am: 7b8c0020 am: bc9c044a

am: 006faaf9

Change-Id: I6ba7e8924ce64f701a609c03ceb4394ab40b4898
parents cc0eb5b3 006faaf9
No related branches found
No related tags found
No related merge requests found
...@@ -418,6 +418,7 @@ ...@@ -418,6 +418,7 @@
############################# #############################
# sysfs files # sysfs files
# #
/sys/class/leds(/.*)? u:object_r:sysfs_leds:s0
/sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0 /sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
/sys/devices/system/cpu(/.*)? u:object_r:sysfs_devices_system_cpu:s0 /sys/devices/system/cpu(/.*)? u:object_r:sysfs_devices_system_cpu:s0
/sys/devices/virtual/block/zram\d+(/.*)? u:object_r:sysfs_zram:s0 /sys/devices/virtual/block/zram\d+(/.*)? u:object_r:sysfs_zram:s0
......
...@@ -32,6 +32,7 @@ type sysfs, fs_type, sysfs_type, mlstrustedobject; ...@@ -32,6 +32,7 @@ type sysfs, fs_type, sysfs_type, mlstrustedobject;
type sysfs_uio, sysfs_type, fs_type; type sysfs_uio, sysfs_type, fs_type;
type sysfs_batteryinfo, fs_type, sysfs_type; type sysfs_batteryinfo, fs_type, sysfs_type;
type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject; type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_leds, fs_type, sysfs_type;
type sysfs_hwrandom, fs_type, sysfs_type; type sysfs_hwrandom, fs_type, sysfs_type;
type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject; type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_wake_lock, fs_type, sysfs_type; type sysfs_wake_lock, fs_type, sysfs_type;
......
# call into system_server process (callbacks) # call into system_server process (callbacks)
binder_call(hal_light, system_server) binder_call(hal_light, system_server)
allow hal_light sysfs_leds:lnk_file read;
allow hal_light sysfs_leds:file rw_file_perms;
allow hal_light sysfs_leds:dir r_dir_perms;
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