diff options
author | Bruno Martins <bgcngm@gmail.com> | 2018-02-28 09:52:12 +0000 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2018-04-20 18:51:35 +0300 |
commit | 4dd1cb231b59d848b744c7e37d4879a577b70ef9 (patch) | |
tree | 12dccae3a224da2f41d1b678255fd39f71ea4f2d | |
parent | 75573bd6594b2cce4cb3ff238fd37cf3a06ad8fe (diff) | |
download | android_device_qcom_sepolicy-4dd1cb231b59d848b744c7e37d4879a577b70ef9.tar.gz android_device_qcom_sepolicy-4dd1cb231b59d848b744c7e37d4879a577b70ef9.tar.bz2 android_device_qcom_sepolicy-4dd1cb231b59d848b744c7e37d4879a577b70ef9.zip |
legacy: Add debugfs rules for rmt_storage
Change-Id: Id29dbfe25a979ff8257ba5f4f6fe94ec2c2b471c
-rw-r--r-- | legacy-common/file.te | 1 | ||||
-rw-r--r-- | legacy-common/genfs_contexts | 1 | ||||
-rw-r--r-- | legacy-common/rmt_storage.te | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/legacy-common/file.te b/legacy-common/file.te index f2e2ad16..fd0ce042 100644 --- a/legacy-common/file.te +++ b/legacy-common/file.te @@ -1 +1,2 @@ +type debugfs_rmt, debugfs_type, fs_type; type sysfs_runtime_status, sysfs_type, fs_type; diff --git a/legacy-common/genfs_contexts b/legacy-common/genfs_contexts new file mode 100644 index 00000000..f94e9ebd --- /dev/null +++ b/legacy-common/genfs_contexts @@ -0,0 +1 @@ +genfscon debugfs /rmt_storage u:object_r:debugfs_rmt:s0 diff --git a/legacy-common/rmt_storage.te b/legacy-common/rmt_storage.te index 7303b7e4..81aa9500 100644 --- a/legacy-common/rmt_storage.te +++ b/legacy-common/rmt_storage.te @@ -1 +1,7 @@ allow rmt_storage self:capability sys_admin; + +# debugfs access +userdebug_or_eng(` + allow rmt_storage debugfs_rmt:dir search; + allow rmt_storage debugfs_rmt:file rw_file_perms; +') |