libgocryptfs/internal/fusefrontend
Jakob Unterwurzacher b22cc03c75 fusefrontend: -allow_other: set file mode *after* chown in Create()
Reported by @slackner at https://github.com/rfjakob/gocryptfs/issues/327 :

Possible race-conditions between file creation and Fchownat

* Assume a system contains a gocryptfs mount as root user
  with -allow_other
* As a regular user create a new file with mode containing
  the SUID flag and write access for other users
* Before gocryptfs executes the Fchownat call, try to open
  the file again, write some exploit code to it, and try to run it.

For a short time, the file is owned by root and has the SUID flag, so
this is pretty dangerous.
2019-01-08 21:50:10 +01:00
..
args.go reverse mode: add --exclude option 2018-08-11 23:26:49 +02:00
ctlsock_interface.go fusefrontend: Use appropriate flags in decryptPathAt. 2019-01-03 18:24:05 +01:00
dircache.go main: Run 'ensure fds' code early during the program startup. 2019-01-05 16:12:16 +01:00
file_allocate_truncate.go fusefrontend: Fix computation of cipherSz in Allocate FUSE call. 2019-01-06 20:56:59 +01:00
file_holes.go fusefrontend: Properly convert plaintext <-> ciphertext offsets in SeekData(). 2019-01-06 12:21:54 +01:00
file.go fusefrontend: Fix debug message in doWrite() method. 2019-01-01 16:12:42 +01:00
fs_dir.go fusefrontend: Open directory with syscall.O_DIRECTORY in OpenDir. 2019-01-03 18:24:05 +01:00
fs.go fusefrontend: -allow_other: set file mode *after* chown in Create() 2019-01-08 21:50:10 +01:00
openbackingdir_test.go fusefrontend: Remove debug code. 2019-01-03 18:24:05 +01:00
openbackingdir.go Omit syscall.O_RDONLY flag when passing O_PATH. 2019-01-03 18:24:05 +01:00
xattr_darwin.go fusefrontend: Allow to set/remove xattr on directory without read permission. 2019-01-05 12:34:40 +01:00
xattr_linux_unit_test.go Improved xattr handling on non-linux systems (#227) 2018-04-17 20:33:04 +02:00
xattr_linux.go fusefrontend: Allow to set/remove xattr on directory without read permission. 2019-01-05 12:34:40 +01:00
xattr_unit_test.go fusefrontend: make openBackingDir() symlink-safe 2019-01-01 16:24:09 +01:00
xattr.go fusefrontend: Allow to set/remove xattr on directory without read permission. 2019-01-05 12:34:40 +01:00