Skip to content

Commit

Permalink
Merge "Make SELinux policies more 4.4 compatible" into cm-11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hillenbrand authored and Gerrit Code Review committed Dec 3, 2013
2 parents 4ed4fda + b67b732 commit a342fe2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion BoardCommonConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion selinux/device.te
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
type mali_device, dev_type, mlstrustedobject;
type rfkill_device, dev_type;
type efs_block_device, dev_type;
3 changes: 0 additions & 3 deletions selinux/domain.te
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
1 change: 1 addition & 0 deletions selinux/drmserver.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow drmserver sdcard_external:file open;
6 changes: 3 additions & 3 deletions selinux/file_contexts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions selinux/ueventd.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
allow ueventd sdcard_external:dir search;
allow ueventd sdcard_external:file r_file_perms;
1 change: 1 addition & 0 deletions selinux/vold.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow vold sdcard_external:file rw_file_perms;

0 comments on commit a342fe2

Please sign in to comment.