From: Adam Duskett Date: Fri, 31 Jul 2020 20:40:53 +0000 (-0700) Subject: package/libselinux: enable kernel selinux support for erofs images X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2be469e3b944e79029ca3d0b97fd7f027b1b5de5;p=buildroot.git package/libselinux: enable kernel selinux support for erofs images If BR2_TARGET_ROOTFS_EROFS is selected, enable the following kernel options: - CONFIG_EROFS_FS_XATTR - CONFIG_EROFS_FS_SECURITY Signed-off-by: Adam Duskett Signed-off-by: Thomas Petazzoni --- diff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk index 521dbaaba8..b8f9c3b55a 100644 --- a/package/libselinux/libselinux.mk +++ b/package/libselinux/libselinux.mk @@ -112,6 +112,9 @@ define LIBSELINUX_LINUX_CONFIG_FIXUPS $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_NETWORK) $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_SELINUX) $(call KCONFIG_SET_OPT,CONFIG_LSM,"selinux") + $(if $(BR2_TARGET_ROOTFS_EROFS), + $(call KCONFIG_ENABLE_OPT,CONFIG_EROFS_FS_XATTR) + $(call KCONFIG_ENABLE_OPT,CONFIG_EROFS_FS_SECURITY)) endef $(eval $(generic-package))