Skip to content

Commit

Permalink
build.config.slider: Build SELinux compatible vendor_dlkm img
Browse files Browse the repository at this point in the history
Provide file_contexts.bin file to build_image to build a vendor_dlkm
partition image where the .ko files are assigned the proper SELinux
labels. Without this change, all files in the vendor_dlkm partition will
be unlabeled which results in SELinux denials.

Bug: 185184472
Signed-off-by: Daniel Mentz <[email protected]>
Change-Id: Ib137df28586614fadcde9c7968b69c548bc94ebf
  • Loading branch information
danielmentzgoogle committed May 4, 2021
1 parent 82495bf commit 3a6486c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.config.gs101
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ BUILD_INITRAMFS=1
LZ4_RAMDISK=1
BUILD_BOOT_IMG=1
VENDOR_DLKM_MODULES_LIST=${KERNEL_DIR}/vendor_dlkm_modules.slider
VENDOR_DLKM_PROPS=${KERNEL_DIR}/vendor_dlkm.props.slider
GKI_RAMDISK_PREBUILT_BINARY=${ROOT_DIR}/prebuilts/boot-artifacts/ramdisks/ramdisk-aosp_arm64.img
VENDOR_RAMDISK_BINARY=${ROOT_DIR}/prebuilts/boot-artifacts/ramdisks/vendor_ramdisk-oriole.img
KERNEL_VENDOR_CMDLINE="earlycon=exynos4210,0x10A00000 console=ttySAC0,115200 androidboot.console=ttySAC0"
Expand Down
9 changes: 9 additions & 0 deletions vendor_dlkm.props.slider
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fs_type=ext4
use_dynamic_partition_size=true
ext_mkuserimg=mkuserimg_mke2fs
ext4_share_dup_blocks=true
extfs_rsv_pct=0
journal_size=0
partition_name=vendor_dlkm
mount_point=vendor_dlkm
selinux_fc=prebuilts/boot-artifacts/selinux/file_contexts.bin

0 comments on commit 3a6486c

Please sign in to comment.