rfjakob / gocryptfs

Encrypted overlay filesystem written in Go

Home Page:https://nuetzlich.net/gocryptfs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing check for plaintextnames in many FUSE callbacks

slackner opened this issue · comments

Steps to reproduce:

  1. Create a regular GoCryptFS mount point in forward mode and with -plaintextnames
  2. In the mount point directory try to run touch gocryptfs.longname.XXX

This fails with the error No such file or directory, but should actually succeed. The problem is that many FUSE calls do not explicitly check if plaintextnames is set.

On the first sight this affects the following functions:

  • Create
  • Mknod
  • Unlink
  • Rename
  • Link

I fear this one was closed a bit too early. Mknod and Unlink are fixed now, but there might be three other functions affected by the same problem. Should I open new bugs for them?

I would, but apparently I don't have permission to reopen myself.

Hmm will check if i can allow that somehow