sepolicy : adding misc bootup denails

Following are added
 1.ueventd and vold need search/read access to  /mnt/vendor/persist
 2. system_server need access  to /sys/class/rtc/rtc0 path.

Change-Id: I4d5f322019f1e75aab1be2168eb3805f4f3998c6
This commit is contained in:
Ravi Kumar Siddojigari
2019-06-24 18:38:58 +05:30
parent 77ab93c1f4
commit 5dc863443d
3 changed files with 8 additions and 0 deletions

View File

@@ -47,3 +47,6 @@ allow ueventd firmware_file:file r_file_perms;
allow ueventd tmpfs:blk_file getattr;
allow ueventd persist_file:dir search;
allow ueventd persist_file:file r_file_perms;
# For wifi to access mnt_vendor_file
r_dir_file(ueventd, mnt_vendor_file)

View File

@@ -26,3 +26,6 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
get_prop(vold, vendor_tee_listener_prop)
# Based on the comment from b/111409607 FITRIM might
# be needed
allow vold mnt_vendor_file:dir { open read ioctl };

View File

@@ -123,3 +123,5 @@ genfscon sysfs /devices/1101_02.01.00/time_us u:object_r:sysfs_mhi:s0
#net sysfs
genfscon sysfs /devices/platform/soc/1c08000.qcom,pcie/pci0001:00/0001:00:00.0/0001:01:00.0/0306_01.01.00_IP_HW0/net u:object_r:sysfs_net:s0
#/sys/class/rtc
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm8150@0:qcom,pm8150_rtc/rtc u:object_r:sysfs_rtc:s0