diff options
author | Pavel Kirpichyov <pavel.kirpichyov@gmail.com> | 2013-11-18 20:57:45 +0400 |
---|---|---|
committer | Pavel Kirpichyov <pavel.kirpichyov@gmail.com> | 2013-11-18 19:08:10 +0200 |
commit | b67b732a0cc9c98ea6a0bf0c838af0c3b2106900 (patch) | |
tree | 582fafcc448093762ec55ae9d2e37efcbc148bfe /selinux | |
parent | e43d6d9042ea080bd5c72acc816f573c07ba24cb (diff) | |
download | device_samsung_galaxys2-common-b67b732a0cc9c98ea6a0bf0c838af0c3b2106900.zip device_samsung_galaxys2-common-b67b732a0cc9c98ea6a0bf0c838af0c3b2106900.tar.gz device_samsung_galaxys2-common-b67b732a0cc9c98ea6a0bf0c838af0c3b2106900.tar.bz2 |
Make SELinux policies more 4.4 compatible
Change-Id: I8494f924f1d979fe88eae60ffc118cf34a90184c
Diffstat (limited to 'selinux')
-rw-r--r-- | selinux/device.te | 1 | ||||
-rw-r--r-- | selinux/domain.te | 3 | ||||
-rw-r--r-- | selinux/drmserver.te | 1 | ||||
-rw-r--r-- | selinux/file_contexts | 6 | ||||
-rw-r--r-- | selinux/ueventd.te | 2 | ||||
-rw-r--r-- | selinux/vold.te | 1 |
6 files changed, 7 insertions, 7 deletions
diff --git a/selinux/device.te b/selinux/device.te index cca8ee1..6de8078 100644 --- a/selinux/device.te +++ b/selinux/device.te @@ -1,3 +1,2 @@ -type mali_device, dev_type, mlstrustedobject; type rfkill_device, dev_type; type efs_block_device, dev_type; diff --git a/selinux/domain.te b/selinux/domain.te index 24e0951..ed8e129 100644 --- a/selinux/domain.te +++ b/selinux/domain.te @@ -1,6 +1,3 @@ -## /dev/mali, /dev/ump -allow domain mali_device:chr_file rw_file_perms; - ## /dev/rfkill for wpa_supp allow wpa rfkill_device:chr_file rw_file_perms; diff --git a/selinux/drmserver.te b/selinux/drmserver.te new file mode 100644 index 0000000..a456bbf --- /dev/null +++ b/selinux/drmserver.te @@ -0,0 +1 @@ +allow drmserver sdcard_external:file open; diff --git a/selinux/file_contexts b/selinux/file_contexts index 3b9f7bc..3dc49e7 100644 --- a/selinux/file_contexts +++ b/selinux/file_contexts @@ -1,7 +1,7 @@ # GFX -/dev/mali u:object_r:mali_device:s0 -/dev/ump u:object_r:mali_device:s0 -/dev/fimg2d u:object_r:mali_device:s0 +/dev/mali u:object_r:graphics_device:s0 +/dev/ump u:object_r:graphics_device:s0 +/dev/fimg2d u:object_r:graphics_device:s0 # RIL /dev/umts_boot0 u:object_r:radio_device:s0 diff --git a/selinux/ueventd.te b/selinux/ueventd.te new file mode 100644 index 0000000..95a5698 --- /dev/null +++ b/selinux/ueventd.te @@ -0,0 +1,2 @@ +allow ueventd sdcard_external:dir search; +allow ueventd sdcard_external:file r_file_perms; diff --git a/selinux/vold.te b/selinux/vold.te new file mode 100644 index 0000000..d179865 --- /dev/null +++ b/selinux/vold.te @@ -0,0 +1 @@ +allow vold sdcard_external:file rw_file_perms; |