aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-05-08 17:17:08 +0200
committerJakob Unterwurzacher2021-05-15 17:58:37 +0200
commit86d8336b43418c028c34c37f06fcbd43ab0d44a1 (patch)
tree571dfa970a43938587496ac63b95a17060c8df80 /mount.go
parenta91ad29d362e8cb5348766da637202ac8905b9f2 (diff)
Add -acl flag to enable ACL enforcement
With test to verify that it actually works this time: Run "make root_test". Depends-on: https://github.com/rfjakob/gocryptfs/issues/536 Fixes: https://github.com/rfjakob/gocryptfs/issues/536
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mount.go b/mount.go
index 1194104..9409471 100644
--- a/mount.go
+++ b/mount.go
@@ -396,6 +396,9 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server {
// Make the kernel check the file permissions for us
mOpts.Options = append(mOpts.Options, "default_permissions")
}
+ if args.acl {
+ mOpts.EnableAcl = true
+ }
if args.forcedecode {
tlog.Info.Printf(tlog.ColorYellow + "THE OPTION \"-forcedecode\" IS ACTIVE. GOCRYPTFS WILL RETURN CORRUPT DATA!" +
tlog.ColorReset)