From 3409ade2723d931097560fbbe35e461553c5912c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 24 Apr 2017 00:25:02 +0200 Subject: forcedecode: tighten checks ...and fix a few golint issues and print a scary warning message on mount. Also, force the fs to ro,noexec. --- mount.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mount.go') diff --git a/mount.go b/mount.go index 6da6492..59116d6 100644 --- a/mount.go +++ b/mount.go @@ -249,6 +249,10 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF // Make the kernel check the file permissions for us mOpts.Options = append(mOpts.Options, "default_permissions") } + if args.forcedecode { + tlog.Info.Printf(tlog.ColorYellow + "THE OPTION \"-forcedecode\" IS ACTIVE. GOCRYPTFS WILL RETURN CORRUPT DATA!" + + tlog.ColorReset) + } if args.nonempty { mOpts.Options = append(mOpts.Options, "nonempty") } -- cgit v1.2.3