diff mbox series

[v3,2/2] fs/jffs2: copy xattrs

Message ID 20201008090836.2670553-2-antoine.tenart@bootlin.com
State Accepted
Headers show
Series [v3,1/2] package/mtd: add host-acl dependency for host | expand

Commit Message

Antoine Tenart Oct. 8, 2020, 9:08 a.m. UTC
This patch sets the --with-xattr option when generating an image with
mkfs.jffs2, so that SELinux security contexts and other extended
attributes will be kept and available in jffs2 images.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
---

Since v2:
  - Removed condition on BR2_PACKAGE_LIBSELINUX.

Since v1:
  - s/BR2_PACKAGE_REFPOLICY/BR2_PACKAGE_LIBSELINUX/

 fs/jffs2/jffs2.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Korsgaard Oct. 10, 2020, 8:53 p.m. UTC | #1
>>>>> "Antoine" == Antoine Tenart <antoine.tenart@bootlin.com> writes:

 > This patch sets the --with-xattr option when generating an image with
 > mkfs.jffs2, so that SELinux security contexts and other extended
 > attributes will be kept and available in jffs2 images.

 > Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
 > ---

 > Since v2:
 >   - Removed condition on BR2_PACKAGE_LIBSELINUX.

 > Since v1:
 >   - s/BR2_PACKAGE_REFPOLICY/BR2_PACKAGE_LIBSELINUX/


Committed to 2020.08.x, thanks.
diff mbox series

Patch

diff --git a/fs/jffs2/jffs2.mk b/fs/jffs2/jffs2.mk
index 2adbc2320e38..0096af2ea966 100644
--- a/fs/jffs2/jffs2.mk
+++ b/fs/jffs2/jffs2.mk
@@ -4,7 +4,7 @@ 
 #
 ################################################################################
 
-JFFS2_OPTS = -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE)
+JFFS2_OPTS = -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE) --with-xattr
 SUMTOOL_OPTS = -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE)
 
 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_PAD),y)