summaryrefslogtreecommitdiffstats
path: root/sdm660
diff options
context:
space:
mode:
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>2018-01-17 10:56:08 +0530
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>2018-01-17 10:56:08 +0530
commit4288b8e6b847d9957d38d8ccdd2b5ddf9d00d040 (patch)
tree64b39da06ff807fcc1bb6e429e6c101254ab0348 /sdm660
parent664f7a5ba93d61cef2a73933f01424c42f21ad0a (diff)
downloadandroid_device_qcom_sepolicy-4288b8e6b847d9957d38d8ccdd2b5ddf9d00d040.tar.gz
android_device_qcom_sepolicy-4288b8e6b847d9957d38d8ccdd2b5ddf9d00d040.tar.bz2
android_device_qcom_sepolicy-4288b8e6b847d9957d38d8ccdd2b5ddf9d00d040.zip
Sepolicy: Add permission to access rndis_dl_max_xfer_size
Add required permissions to access rndis_dl_max_xfer_size sysfs entry from .sh file. Change-Id: Idbebe6962a358da396c334ffd1d2145511401a79
Diffstat (limited to 'sdm660')
-rw-r--r--sdm660/file.te2
-rw-r--r--sdm660/file_contexts3
-rw-r--r--sdm660/init_shell.te3
3 files changed, 8 insertions, 0 deletions
diff --git a/sdm660/file.te b/sdm660/file.te
index 7144270b..71310e13 100644
--- a/sdm660/file.te
+++ b/sdm660/file.te
@@ -27,3 +27,5 @@
#sysfs emmc dload type
type sysfs_emmc_dload, sysfs_type, fs_type;
+#sysfs rndis usb type
+type sysfs_rndis_usb, sysfs_type, fs_type;
diff --git a/sdm660/file_contexts b/sdm660/file_contexts
index 7ea83331..4f7b3018 100644
--- a/sdm660/file_contexts
+++ b/sdm660/file_contexts
@@ -156,3 +156,6 @@
#UFS
/dev/block/platform/soc/1da4000.ufshc/by-name/rawdump u:object_r:rawdump_block_device:s0
/dev/block/platform/soc/1da4000.ufshc/by-name/ramdump u:object_r:rawdump_block_device:s0
+
+#USB
+/sys/module/usb_f_qcrndis/parameters/rndis_dl_max_xfer_size u:object_r:sysfs_rndis_usb:s0
diff --git a/sdm660/init_shell.te b/sdm660/init_shell.te
index 94ecf145..9921fc7b 100644
--- a/sdm660/init_shell.te
+++ b/sdm660/init_shell.te
@@ -32,3 +32,6 @@ allow qti_init_shell regionalization_file:file create_file_perms;
#For sensors
allow qti_init_shell sensors_persist_file:dir create_dir_perms;
allow qti_init_shell sensors_persist_file:file create_file_perms;
+
+#For USB
+allow qti_init_shell sysfs_rndis_usb:file rw_file_perms;