From: Darrick J. Wong Date: Wed, 21 May 2025 22:37:47 +0000 (-0700) Subject: fuse2fs: enable processing of acls in the kernel X-Git-Tag: v1.47.3-rc1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8646830d9bffbcd1243db044eb141ac8ee5de8cd;p=thirdparty%2Fe2fsprogs.git fuse2fs: enable processing of acls in the kernel Let the kernel process ACLs. Signed-off-by: Darrick J. Wong Link: https://lore.kernel.org/r/174786677747.1383760.17294624757826456720.stgit@frogsfrogsfrogs Signed-off-by: Theodore Ts'o --- diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c index 77d8321c..0fc6aed2 100644 --- a/misc/fuse2fs.c +++ b/misc/fuse2fs.c @@ -4156,9 +4156,15 @@ int main(int argc, char *argv[]) #endif } - if (fctx.kernel) + if (fctx.kernel) { + /* + * ACLs are always enforced when kernel mode is enabled, to + * match the kernel ext4 driver which always enables ACLs. + */ + fctx.acl = 1; fuse_opt_insert_arg(&args, 1, "-oallow_other,default_permissions,suid,dev"); + } if (fctx.debug) { int i;