sepolicy : correct the matching expression of sysfs_ssr

Current expression is unable to match all the name files of sysfs_ssr.
There are denials of sysfs files because of this. Correct it to fix
the denials.
CRs-Fixed: 2111501
Change-Id: I7786b34e10b36232186e55fb9cef8dcb5710d6a4
This commit is contained in:
Sridhar Parasuram
2017-12-13 09:10:16 -08:00
parent a8f9a311b3
commit c9fd3261b6
2 changed files with 4 additions and 1 deletions

View File

@@ -398,7 +398,7 @@
/sys/devices/msm_hsic_host/host_ready u:object_r:sysfs_hsic_host_rdy:s0
/sys/bus/esoc(/.*)? u:object_r:sysfs_esoc:s0
/sys/bus/msm_subsys(/.*)? u:object_r:sysfs_ssr:s0
/sys/devices(/platform)?/soc/[a-z0-9\.:]+,[a-z0-9\-]+/subsys[0-9]+/name u:object_r:sysfs_ssr:s0
/sys/devices(/platform)?/soc/[a-z0-9\.:]+,[a-z0-9\-\_]+/subsys[0-9]+/name u:object_r:sysfs_ssr:s0
/sys/module/ccid_bridge(/.*)? u:object_r:sysfs_usb_uicc:s0
/sys/bus/msm_subsys/devices/subsys0/restart_level u:object_r:sysfs_ssr_toggle:s0
/sys/bus/msm_subsys/devices/subsys1/restart_level u:object_r:sysfs_ssr_toggle:s0

View File

@@ -93,3 +93,6 @@
# Same process file
/vendor/lib(64)?/hw/gralloc\.sdm845\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/hw/vulkan\.sdm845\.so u:object_r:same_process_hal_file:s0
# sdm845 specific sysfs
/sys/devices/platform/soc/17d41000.qcom,cpucc/17d41000.qcom,cpucc:qcom,wil6210/subsys8/name u:object_r:sysfs_ssr:s0