- Notifications
You must be signed in to change notification settings - Fork288
Commit09954c4
committed
fusefrontend: implement our own Access()
Not having Access() means go-fuse emulates it by looking at Getattr().This works fine most of the time, but breaks down on sshfs, wheresshfs-benchmark.bash shows this:gocryptfs/tests$ ./sshfs-benchmark.bash nuetzlich.networking directory: /tmp/sshfs-benchmark.bash.JQCsshfs mounted: nuetzlich.net:/tmp -> sshfs.mntgocryptfs mounted: sshfs.mnt/sshfs-benchmark.bash.Wrz/gocryptfs.crypt -> gocryptfs.mntsshfs-benchmark.bash: sshfs gocryptfs-on-sshfsgit init 3.98 6.80rsync 7.71 10.84rm -R 4.30rm: descend into write-protected directory 'gocryptfs.mnt/git1'?The go-fuse emulation gets it wrong here because sshfs reportspermissions but does not enforce them.Implement it ourselves properly.1 parent7d1e48d commit09954c4
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
| |||
0 commit comments
Comments
(0)