[Buildroot] [PATCH v2 2/2] fs/jffs2: copy xattrs
Antoine Tenart
antoine.tenart at bootlin.com
Tue Oct 6 15:37:26 UTC 2020
This patch sets the --with-xattr option when generating an image with
mkfs.jffs2 if BR2_PACKAGE_LIBSELINUX is selected, so that SELinux
security contexts will be kept and available in jffs2 images.
Signed-off-by: Antoine Tenart <antoine.tenart at bootlin.com>
---
Since v1:
- s/BR2_PACKAGE_REFPOLICY/BR2_PACKAGE_LIBSELINUX/
fs/jffs2/jffs2.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/jffs2/jffs2.mk b/fs/jffs2/jffs2.mk
index 2adbc2320e38..d93ba58ded6e 100644
--- a/fs/jffs2/jffs2.mk
+++ b/fs/jffs2/jffs2.mk
@@ -35,6 +35,10 @@ JFFS2_OPTS += -n
SUMTOOL_OPTS += -n
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+JFFS2_OPTS += --with-xattr
+endif
+
ROOTFS_JFFS2_DEPENDENCIES = host-mtd
ifneq ($(BR2_TARGET_ROOTFS_JFFS2_SUMMARY),)
--
2.26.2
More information about the buildroot
mailing list