diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-02-23 13:33:38 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-02-23 13:33:38 +0100 |
commit | d4812dbf603b925926c6771896e4da7aef0c5979 (patch) | |
tree | 29fbb379dd95afe71a449967e34d87bf4c81a8ca | |
parent | 1413351f63cc2ad6186f1a99ae4316088412c6fe (diff) | |
download | device_samsung_n7100-d4812dbf603b925926c6771896e4da7aef0c5979.zip device_samsung_n7100-d4812dbf603b925926c6771896e4da7aef0c5979.tar.gz device_samsung_n7100-d4812dbf603b925926c6771896e4da7aef0c5979.tar.bz2 |
selinux: allow surfaceflinger access to s5p-smem
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r-- | selinux/device.te | 1 | ||||
-rw-r--r-- | selinux/file_contexts | 1 | ||||
-rw-r--r-- | selinux/surfaceflinger.te | 1 |
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; |