summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2014-02-26 22:31:01 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-26 22:31:01 +0000
commit65f26a769ac3d3648c533e5e39ba6d1f3f1b3600 (patch)
treeea8ffab3f1c5a045d95c279279183c00d2ed9fc7 /target
parenta8d273d3ce1d062c55dd936ab17792c7494643ca (diff)
parent9edc9783d21f59bc532e2b7b62ae2464ee976438 (diff)
downloadbuild-65f26a769ac3d3648c533e5e39ba6d1f3f1b3600.zip
build-65f26a769ac3d3648c533e5e39ba6d1f3f1b3600.tar.gz
build-65f26a769ac3d3648c533e5e39ba6d1f3f1b3600.tar.bz2
am 9edc9783: Merge "Add policy for MIPS emulator, fix x86 policy."
* commit '9edc9783d21f59bc532e2b7b62ae2464ee976438': Add policy for MIPS emulator, fix x86 policy.
Diffstat (limited to 'target')
-rw-r--r--target/board/generic_mips/BoardConfig.mk14
-rw-r--r--target/board/generic_x86/sepolicy/domain.te2
2 files changed, 16 insertions, 0 deletions
diff --git a/target/board/generic_mips/BoardConfig.mk b/target/board/generic_mips/BoardConfig.mk
index e16374b..85bf7d7 100644
--- a/target/board/generic_mips/BoardConfig.mk
+++ b/target/board/generic_mips/BoardConfig.mk
@@ -56,3 +56,17 @@ BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 512
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
+
+BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
+BOARD_SEPOLICY_UNION += \
+ adbd.te \
+ bootanim.te \
+ device.te \
+ domain.te \
+ file.te \
+ file_contexts \
+ mediaserver.te \
+ qemud.te \
+ rild.te \
+ surfaceflinger.te \
+ system_server.te
diff --git a/target/board/generic_x86/sepolicy/domain.te b/target/board/generic_x86/sepolicy/domain.te
index 0bc8d87..c17950d 100644
--- a/target/board/generic_x86/sepolicy/domain.te
+++ b/target/board/generic_x86/sepolicy/domain.te
@@ -1 +1,3 @@
+# For /sys/qemu_trace files in the emulator.
+allow domain sysfs_writable:file rw_file_perms;
allow domain cpuctl_device:dir search;