Re: [PATCH 0/3] Add O_DENY* flags to fcntl and cifs

2012-12-14 Thread Alan Cox
> We can make this feature (passing O_DENY* flags received from clients > to filesystem) can be turned on/off on Samba/NFS server to let this > particular use case work. In general, I think we really need to be > sure that nobody has a read access for files that a Windows process > opened with O_DE

Re: [PATCH 0/3] Add O_DENY* flags to fcntl and cifs

2012-12-10 Thread Alan Cox
> The problem is the possibility of denial-of-service attacks here. We > can try to prevent them by: > 1) specifying an extra security bit on the file that indicates that > share flags are accepted (like we have for mandatory locks now) and > setting it for neccessary files only, or > 2) adding

Re: [PATCH 0/3] Add O_DENY* flags to fcntl and cifs

2012-12-10 Thread Alan Cox
> I suspect that WINE would have the same need Tricky - Wine needs to enforce this behaviour solely between Wine and the file server, Trying to muck up non emulated local behaviour would be a bad mistake. One way perhaps to look at this is you want some tasks to be able to *opt in* to this behavi

Re: [PATCH 0/3] Add O_DENY* flags to fcntl and cifs

2012-12-06 Thread Alan Cox
On Thu, 6 Dec 2012 22:26:28 +0400 Pavel Shilovsky wrote: > Network filesystems CIFS, SMB2.0, SMB3.0 and NFSv4 have such flags - this > change can benefit cifs and nfs modules. While this change is ok for network > filesystems, itsn't not targeted for local filesystems due security problems >