From: Mike K. <mi...@sm...> - 2011-12-16 20:59:45
|
On 12/16/2011 02:52 PM, Mike Kelly wrote: > Attached are a few patches for minor bug fixes I noticed, but the main > patch is #4, which implements "#3" from my original post. Along with these patches, I've noticed that the only enforcement of file permissions seems to happen on the remote server's end. While that's important, it seems that, at least optionally, permissions should be enforced locally, based upon any translated UIDs/GIDs. I can already see that if, say, I try to 'touch sshfsmount/tmp/bar', then LSTAT calls are made against "/", "/tmp", and "/tmp/bar". Actually, "/tmp/bar" is LSTAT'd twice. So, it seems like we should be getting the information we need to locally enforce permissions, without the need for extra remote calls. We just need to enforce EPERM in here somehow. Any suggestions on where to add that would be appreciated. -- Mike Kelly |