OSDN Git Service

Allow execmem and ashmem_device execute as required.
authorStephen Smalley <sds@tycho.nsa.gov>
Tue, 24 Dec 2013 16:34:28 +0000 (11:34 -0500)
committerStephen Smalley <sds@tycho.nsa.gov>
Tue, 24 Dec 2013 16:43:25 +0000 (11:43 -0500)
bootanim requires execmem.
bootanim and surfaceflinger requires execute to ashmem_device.

Change-Id: I3b4964c5acd31a44ce81672077c70353a375c072
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
target/board/generic/BoardConfig.mk
target/board/generic/sepolicy/bootanim.te [new file with mode: 0644]
target/board/generic/sepolicy/surfaceflinger.te

index 8f698ec..e0ad23a 100644 (file)
@@ -76,4 +76,7 @@ BOARD_FLASH_BLOCK_SIZE := 512
 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
 
 BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
-BOARD_SEPOLICY_UNION += domain.te surfaceflinger.te
+BOARD_SEPOLICY_UNION += \
+        bootanim.te \
+        domain.te \
+        surfaceflinger.te
diff --git a/target/board/generic/sepolicy/bootanim.te b/target/board/generic/sepolicy/bootanim.te
new file mode 100644 (file)
index 0000000..d6506e1
--- /dev/null
@@ -0,0 +1,2 @@
+allow bootanim self:process execmem;
+allow bootanim ashmem_device:chr_file execute;
index 9523630..4c35469 100644 (file)
@@ -1 +1,2 @@
 allow surfaceflinger self:process execmem;
+allow surfaceflinger ashmem_device:chr_file execute;