summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2019-08-26 21:32:55 -0500
committerPraneeth Bajjuri2019-08-28 10:34:58 -0500
commitfa71a4ad5d89427b05569c0c948419ec1bdd8544 (patch)
treedcec5b70864e4e5d8d12f3c7c7e1136a47f5881d
parent914c1cf386ca7faa2bd7e4ab9cd5fac05c30ea94 (diff)
downloaddevice-ti-j721e-fa71a4ad5d89427b05569c0c948419ec1bdd8544.tar.gz
device-ti-j721e-fa71a4ad5d89427b05569c0c948419ec1bdd8544.tar.xz
device-ti-j721e-fa71a4ad5d89427b05569c0c948419ec1bdd8544.zip
j721e: sepolicy: allow debugfs access to memtrack hal
Allow memtrack hal access to pvr and ion debugfs entries. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--sepolicy/file.te2
-rw-r--r--sepolicy/genfs_contexts3
-rw-r--r--sepolicy/hal_memtrack.te2
3 files changed, 7 insertions, 0 deletions
diff --git a/sepolicy/file.te b/sepolicy/file.te
index 7162631..4560567 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -1,2 +1,4 @@
1# sysfs types 1# sysfs types
2type sysfs_socinfo, sysfs_type, fs_type; 2type sysfs_socinfo, sysfs_type, fs_type;
3type debugfs_pvr, debugfs_type, fs_type;
4type debugfs_ion, debugfs_type, fs_type;
diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts
new file mode 100644
index 0000000..1bbd81c
--- /dev/null
+++ b/sepolicy/genfs_contexts
@@ -0,0 +1,3 @@
1genfscon debugfs /pvr/driver_stats u:object_r:debugfs_pvr:s0
2genfscon debugfs /pvr/memtrack_stats u:object_r:debugfs_pvr:s0
3genfscon debugfs /ion u:object_r:debugfs_ion:s0
diff --git a/sepolicy/hal_memtrack.te b/sepolicy/hal_memtrack.te
new file mode 100644
index 0000000..b0a8f2f
--- /dev/null
+++ b/sepolicy/hal_memtrack.te
@@ -0,0 +1,2 @@
1allow hal_memtrack debugfs_pvr:file { open read getattr };
2allow hal_memtrack debugfs_ion:dir { open read getattr search };