sepolicy: add sepolicy support for fm app

add sepolicy support for accessing fmradio
device node from fm app.

Change-Id: I2a408e8421543ab0f62e3af1b9fbddccff8edd3d
This commit is contained in:
himta ram
2019-02-25 19:13:49 +05:30
committed by Gerrit - the friendly Code Review server
parent 349455471d
commit 07a65ff69b
3 changed files with 4 additions and 0 deletions

View File

@@ -37,3 +37,4 @@ type esoc_device, dev_type;
type mhi_device, dev_type;
type efs_boot_dev, dev_type;
type smem_log_device, dev_type;
type fm_radio_device, dev_type;

View File

@@ -39,6 +39,7 @@
/dev/esoc.* u:object_r:esoc_device:s0
/dev/mhi_.* u:object_r:mhi_device:s0
/dev/smem_log u:object_r:smem_log_device:s0
/dev/radio0 u:object_r:fm_radio_device:s0
###################################
# Dev socket nodes

View File

@@ -28,3 +28,5 @@
#allow system_app access factory
hal_client_domain(system_app, vendor_hal_factory_qti);
hal_client_domain(system_app, hal_fm);
# fm_radio app needes open read on fm_radio_device
allow system_app fm_radio_device:chr_file r_file_perms;