From f7b98074bb796b6e3ff7a95f7d464753ba83d8d9 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Wed, 6 Dec 2017 23:48:48 +0530 Subject: [PATCH] sepolicy: allow rmt_storage to access sysfs_ssr context with read permission This changes allow rmt_storage to read file /sys/bus/msm_subsys/devices/subsys<>/name with sysfs_ssr context. This is required by libmdmdetect to determine the presence of modem subsystem at run time. Change-Id: I29cb0c43cd4f428bfaa42fedb428afe759690fd0 --- vendor/common/rmt_storage.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/common/rmt_storage.te b/vendor/common/rmt_storage.te index 5fbb1cc9..cfc42f9b 100644 --- a/vendor/common/rmt_storage.te +++ b/vendor/common/rmt_storage.te @@ -29,3 +29,6 @@ allow rmt_storage { modem_block_device ssd_block_device }:blk_file rw_file_perms; + +#sysfs_ssr +r_dir_file(rmt_storage, sysfs_ssr)