package/libselinux: enable kernel selinux support for erofs images
authorAdam Duskett <Aduskett@gmail.com>
Fri, 31 Jul 2020 20:40:53 +0000 (13:40 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 4 Sep 2020 13:43:35 +0000 (15:43 +0200)
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 <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libselinux/libselinux.mk

index 521dbaaba80ceac41dfb874c90921e015ccc9566..b8f9c3b55a97ef6c4fc113987ec1f642632c4cdb 100644 (file)
@@ -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))