diff options
author | David Zeuthen <zeuthen@google.com> | 2015-10-07 13:53:04 -0400 |
---|---|---|
committer | David Zeuthen <zeuthen@google.com> | 2015-10-07 16:07:21 -0400 |
commit | fda9bd348ae1e98547d891c92ed72549c7739de4 (patch) | |
tree | 7466a4a923c71daef0a51582e0a192f2f4e5d22f | |
parent | dab24660f716cc4257fd8d9e7306ebed6b22ed73 (diff) | |
download | dragonboard-fda9bd348ae1e98547d891c92ed72549c7739de4.tar.gz |
dragonboard: Add policy to label partitions used by update_engine.
This selinux policy is needed by update_engine's selinux policy, see
https://android-review.googlesource.com/#/c/174530 for details.
Bug: 23186405
Change-Id: I3a39c0260ae92bd3b66f6d2c47557d55cd4b363b
Test: Manually tested with Brillo build.
-rw-r--r-- | BoardConfig.mk | 3 | ||||
-rw-r--r-- | sepolicy/file_contexts | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index f57fbf5..e959b2f 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -29,3 +29,6 @@ TARGET_BOARD_INFO_FILE := device/qcom/dragonboard/board-info.txt PRODUCT_COPY_FILES += \ device/qcom/dragonboard/fstab:root/fstab.${soc_name} \ device/qcom/dragonboard/provision-device:provision-device + +BOARD_SEPOLICY_DIRS += \ + device/qcom/dragonboard/sepolicy diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts new file mode 100644 index 0000000..20b4675 --- /dev/null +++ b/sepolicy/file_contexts @@ -0,0 +1,5 @@ +/dev/block/platform/soc\.0/7824900\.sdhci/by-name/misc u:object_r:misc_block_device:s0 +/dev/block/platform/soc\.0/7824900\.sdhci/by-name/boot_a u:object_r:boot_block_device:s0 +/dev/block/platform/soc\.0/7824900\.sdhci/by-name/system_a u:object_r:system_block_device:s0 +/dev/block/platform/soc\.0/7824900\.sdhci/by-name/boot_b u:object_r:boot_block_device:s0 +/dev/block/platform/soc\.0/7824900\.sdhci/by-name/system_b u:object_r:system_block_device:s0 |