]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fuse2fs: enable processing of acls in the kernel
authorDarrick J. Wong <djwong@kernel.org>
Wed, 21 May 2025 22:37:47 +0000 (15:37 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 May 2025 13:36:19 +0000 (09:36 -0400)
Let the kernel process ACLs.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174786677747.1383760.17294624757826456720.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c

index 77d8321c2f72aca524fc07e9099ed9dd8cc7e015..0fc6aed2246b75f601d1fa780c33c2ad490b631a 100644 (file)
@@ -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;