[PATCH 11/29] fuse2fs: enable processing of acls in the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Darrick J. Wong <djwong@xxxxxxxxxx>

Let the kernel process ACLs.

Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx>
---
 misc/fuse2fs.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index a0e5d601e55877..ce5314fa439090 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -4141,9 +4141,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;





[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux