Sepolicy: Added rules for QTI HANA55 enablement

QTI policies for MHI node retrival

Change-Id: I2a252638c1f167162954206d0ebfac390e1fa756
This commit is contained in:
Aman Gupta 2019-01-19 06:55:09 +05:30 committed by Gerrit - the friendly Code Review server
parent 6037940f8c
commit 8885cd6d72
3 changed files with 7 additions and 1 deletions

View file

@ -40,5 +40,7 @@ allow qti { vendor_shell_exec }:file rx_file_perms;
#diag
userdebug_or_eng(`
diag_use(qti)
allow qti sysfs_data:file r_file_perms;
allow qti { sysfs_data sysfs_timestamp_switch} :file r_file_perms;
')
allow qti mhi_device:chr_file rw_file_perms;
allow qti sysfs:dir r_dir_perms;

View file

@ -26,3 +26,4 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
type sysfs_qdss_dev, sysfs_type, fs_type;
type sysfs_mhi, sysfs_type, fs_type;

View file

@ -82,3 +82,6 @@ genfscon sysfs /devices/platform/soc/soc:qcom,mdm3/esoc0 u:object_r:sysfs_esoc:s
#hvdcp
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,usb-pdphy@1700/usbpd/usbpd0 u:object_r:sysfs_usbpd_device:s0
#mhi sysfs
genfscon sysfs /bus/mhi/devices/0304_00.01.00_QMI1/mhi_uci u:object_r:sysfs_mhi:s0