From dfde1bbb1615879d8923056e291fca1dab7b8c50 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 6 Jan 2018 16:30:22 +0100 Subject: [PATCH] msm8976-common: sepolicy: Add rules for RIL --- sepolicy/property_contexts | 1 + sepolicy/qmuxd.te | 1 + sepolicy/rild.te | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 sepolicy/qmuxd.te create mode 100644 sepolicy/rild.te diff --git a/sepolicy/property_contexts b/sepolicy/property_contexts index ada233b..51c3d73 100644 --- a/sepolicy/property_contexts +++ b/sepolicy/property_contexts @@ -2,3 +2,4 @@ persist.sys.timeadjust u:object_r:timekeep_prop:s0 service.camera.hdmi_preview u:object_r:camera_prop:s0 service.camera.samsung.enabled u:object_r:camera_prop:s0 storage.efs_sync.done u:object_r:rmt_storage_prop:s0 +persist.ril. u:object_r:system_radio_prop:s0 diff --git a/sepolicy/qmuxd.te b/sepolicy/qmuxd.te new file mode 100644 index 0000000..87fe884 --- /dev/null +++ b/sepolicy/qmuxd.te @@ -0,0 +1 @@ +allow qmuxd diag_device:chr_file rw_file_perms; diff --git a/sepolicy/rild.te b/sepolicy/rild.te new file mode 100644 index 0000000..e3ac66f --- /dev/null +++ b/sepolicy/rild.te @@ -0,0 +1,10 @@ +binder_use(rild) + +allow rild proc_net:file w_file_perms; + +allow rild radio_data_file:dir rw_dir_perms; +allow rild radio_data_file:file create_file_perms; + +r_dir_file(rild, app_efs_file) + +set_prop(rild, system_radio_prop)