diff --git a/target/board/generic_arm64_ab/BoardConfig.mk b/target/board/generic_arm64_ab/BoardConfig.mk index 13f28209c2..4c57f31e4e 100644 --- a/target/board/generic_arm64_ab/BoardConfig.mk +++ b/target/board/generic_arm64_ab/BoardConfig.mk @@ -85,10 +85,8 @@ BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 BOARD_NAND_SPARE_SIZE := 0 BOARD_FLASH_BLOCK_SIZE := 512 -############################################################################### -# Below are sailfish/marlin specific configs. -# Must be moved after early-mount is supported. -############################################################################### -BOARD_SEPOLICY_DIRS += device/google/marlin/sepolicy - BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true + +# TODO(b/36764215): remove this setting when the generic system image +# no longer has QCOM-specific directories under /. +BOARD_SEPOLICY_DIRS += build/target/board/generic_arm64_ab/sepolicy diff --git a/target/board/generic_arm64_ab/sepolicy/file.te b/target/board/generic_arm64_ab/sepolicy/file.te new file mode 100644 index 0000000000..46455339a0 --- /dev/null +++ b/target/board/generic_arm64_ab/sepolicy/file.te @@ -0,0 +1,7 @@ +# TODO(b/36764215): remove this file when the generic system image +# no longer has these directories +type bt_firmware_file, file_type; +type persist_file, file_type; + +# Default type for anything under /firmware. +type firmware_file, fs_type, contextmount_type; diff --git a/target/board/generic_arm64_ab/sepolicy/file_contexts b/target/board/generic_arm64_ab/sepolicy/file_contexts new file mode 100644 index 0000000000..92a4ff8726 --- /dev/null +++ b/target/board/generic_arm64_ab/sepolicy/file_contexts @@ -0,0 +1,13 @@ +# TODO(b/36764215): remove this file when the generic system image +# no longer has these directories. They are specific to QCOM. + +# / +/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0 +/tombstones u:object_r:rootfs:s0 +/dsp u:object_r:rootfs:s0 + +# /persist +/persist(/.*)? u:object_r:persist_file:s0 + +# files in firmware +/firmware(/.*)? u:object_r:firmware_file:s0