fsck: mark temporary mount read-only

We don't write during fsck, but somebody else might try
to.
This commit is contained in:
Jakob Unterwurzacher 2021-06-02 19:32:20 +02:00
parent 307dfd7f71
commit 8f2be5d93c

View File

@ -260,6 +260,7 @@ func fsck(args *argContainer) (exitcode int) {
os.Exit(exitcodes.Usage)
}
args.allow_other = false
args.ro = true
var err error
args.mountpoint, err = ioutil.TempDir("", "gocryptfs.fsck.")
if err != nil {