summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--selinux/device.te1
-rw-r--r--selinux/file_contexts1
-rw-r--r--selinux/surfaceflinger.te1
3 files changed, 3 insertions, 0 deletions
diff --git a/selinux/device.te b/selinux/device.te
index 5ab8206..e59f9eb 100644
--- a/selinux/device.te
+++ b/selinux/device.te
@@ -3,3 +3,4 @@ type efs_block_device, dev_type;
type hpd_device, dev_type;
type mfc_device, dev_type;
type radio_block_device, dev_type;
+type secmem_device, dev_type; \ No newline at end of file
diff --git a/selinux/file_contexts b/selinux/file_contexts
index 275f005..68a3333 100644
--- a/selinux/file_contexts
+++ b/selinux/file_contexts
@@ -2,6 +2,7 @@
/dev/mali u:object_r:gpu_device:s0
/dev/ump u:object_r:gpu_device:s0
/dev/fimg2d u:object_r:gpu_device:s0
+/dev/s5p-smem u:object_r:secmem_device:s0
# RIL
/dev/link_pm u:object_r:radio_device:s0
diff --git a/selinux/surfaceflinger.te b/selinux/surfaceflinger.te
index 00fa1e9..a23d359 100644
--- a/selinux/surfaceflinger.te
+++ b/selinux/surfaceflinger.te
@@ -1 +1,2 @@
allow surfaceflinger hpd_device:chr_file rw_file_perms;
+allow surfaceflinger secmem_device:chr_file rw_file_perms;