summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-10-18 21:05:44 +0200
committerJakob Unterwurzacher2020-10-18 21:07:30 +0200
commit6697ffd6e213828ff4cd873cd1d104877096a230 (patch)
treef256f0b720d0472b37c0af08806786d2232e8806 /mount.go
parentc943ed32aaf94a4e60d96c7a513180d29b15a40a (diff)
fusefronted: reject GETXATTR "security.capability"
Unless we are mounted with -suid, we can reject these requests, and gain back some lost speed. Closes https://github.com/rfjakob/gocryptfs/issues/515
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/mount.go b/mount.go
index f02bc21..39f3f3c 100644
--- a/mount.go
+++ b/mount.go
@@ -266,6 +266,7 @@ func initFuseFrontend(args *argContainer) (rootNode fs.InodeEmbedder, wipeKeys f
Exclude: args.exclude,
ExcludeWildcard: args.excludeWildcard,
ExcludeFrom: args.excludeFrom,
+ Suid: args.suid,
}
// confFile is nil when "-zerokey" or "-masterkey" was used
if confFile != nil {