3
0

Merge "Make SELinux policies more 4.4 compatible" into cm-11.0

This commit is contained in:
Daniel Hillenbrand 2013-12-03 08:21:11 +00:00 committed by Gerrit Code Review
commit a342fe2496
7 changed files with 11 additions and 8 deletions

View File

@ -142,10 +142,13 @@ BOARD_SEPOLICY_DIRS += \
BOARD_SEPOLICY_UNION += \
device.te \
drmserver.te \
ueventd.te \
domain.te \
file.te \
file_contexts \
rild.te
rild.te \
vold.te
# Recovery
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/samsung/galaxys2-common/recovery/recovery_keys.c

View File

@ -1,3 +1,2 @@
type mali_device, dev_type, mlstrustedobject;
type rfkill_device, dev_type;
type efs_block_device, dev_type;

View File

@ -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;

1
selinux/drmserver.te Normal file
View File

@ -0,0 +1 @@
allow drmserver sdcard_external:file open;

View File

@ -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

2
selinux/ueventd.te Normal file
View File

@ -0,0 +1,2 @@
allow ueventd sdcard_external:dir search;
allow ueventd sdcard_external:file r_file_perms;

1
selinux/vold.te Normal file
View File

@ -0,0 +1 @@
allow vold sdcard_external:file rw_file_perms;