diff options
| author | maximilize | 2026-06-26 00:23:30 +0200 |
|---|---|---|
| committer | rfjakob | 2026-07-12 20:39:59 +0200 |
| commit | 3ac282047ff36affb86f260b54ff50653007fdee (patch) | |
| tree | 31ccb22fa8ef3875876c24db753f55d1c2d7b899 /mount.go | |
| parent | 1a03e993cf898bd66125d88dcd682dc056a398d6 (diff) | |
reverse: hide custom -config file located inside CIPHERDIR
In reverse mode, a custom config file passed via -config that lives inside
CIPHERDIR was presented as an ordinary encrypted file in the encrypted view,
which is useless and confusing. By default the config is mapped to a virtual
gocryptfs.conf, but ConfigCustom skips that mapping, so an in-CIPHERDIR custom
config was neither mapped nor hidden.
Plumb the config path into the reverse RootNode and treat a custom config file
located inside CIPHERDIR as excluded in isExcludedPlain, hiding it from both
readdir and lookup. Also document the -config reverse-mode behaviour in
MANPAGE.md and add a regression test.
Fixes #1009
Diffstat (limited to 'mount.go')
| -rw-r--r-- | mount.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -274,6 +274,7 @@ func initFuseFrontend(args *argContainer) (rootNode fs.InodeEmbedder, wipeKeys f PlaintextNames: args.plaintextnames, LongNames: args.longnames, ConfigCustom: args._configCustom, + Config: args.config, NoPrealloc: args.noprealloc, ForceOwner: args._forceOwner, Exclude: args.exclude, |
