diff options
author | Jakob Unterwurzacher | 2017-12-02 21:01:47 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-12-02 21:07:56 +0100 |
commit | 316b916358b8830b53fec9e16b325735aa850b14 (patch) | |
tree | 624a79c366876531af329e1d38b25102f03f58bc /internal/fusefrontend_reverse/rfs.go | |
parent | 91e042e2bafbec3271d8c79005f7dc8229a16a10 (diff) |
fusefrontend_reverse: secure Open against symlink races
...using the new syscallcompat.OpenNofollow helper.
This change secures Open() against symlink race attacks
as described in https://github.com/rfjakob/gocryptfs/issues/165
Diffstat (limited to 'internal/fusefrontend_reverse/rfs.go')
-rw-r--r-- | internal/fusefrontend_reverse/rfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go index 8afc270..09ebe9e 100644 --- a/internal/fusefrontend_reverse/rfs.go +++ b/internal/fusefrontend_reverse/rfs.go @@ -218,7 +218,7 @@ func (rfs *ReverseFS) Open(relPath string, flags uint32, context *fuse.Context) if rfs.isNameFile(relPath) { return rfs.newNameFile(relPath) } - return rfs.newFile(relPath, flags) + return rfs.newFile(relPath) } func (rfs *ReverseFS) openDirPlaintextnames(relPath string, entries []fuse.DirEntry) ([]fuse.DirEntry, fuse.Status) { |