linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Shared flags
@ 2008-11-10 13:58 Pavel Shilovsky
       [not found] ` <49183DF9.9010003-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Pavel Shilovsky @ 2008-11-10 13:58 UTC (permalink / raw)
  To: linux-fsdevel

Hello!
We have situation during our work with Wine and Cifs-client  then we 
have to use sharing access policy to files and we used 3 free bits from 
21 to 23 of attribute flag(it allows to do NT-semantic for opening files 
in open() and it is necessary for correct implementation of function 
NTCreateFile in Wine). We think that it'll be useful not only for us and 
we proffer to add into the file kernel/include/asm-generic/fcntl.h 
following flags:

#define O_DENYREAD      004000000 /* Do not permit read access */
#define O_DENYWRITE     010000000 /* Do not permit write access */
#define O_DENYDELETE  020000000 /* Do not permit delete or rename 
operations*/

Yes, it'll change semantic of calling open() function, but by default(if 
not to use these flags) functionality won't changed, and if we use it 
we'll acquire new resources for organization file access policy. On the 
other hand, we patched cifs with inverting these flags, because 
according to CIFS protocol
#define FILE_SHARE_ALL    0x00000007
ones have opposite meaning.

Summary of changes:
[1/2] patch added share flags in kernel/include/asm-generic/fcntl.h
[2/2] patch added the use of share flags in cifs client

Here is a public git repository
 http://git.etersoft.ru/people/kipruss/packages/?p=cifs-2.6.git;a=shortlog;h=refs/heads/etersoft-to-kernel 


Yours faithfully,
Pavel Shilovsky.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-11-16 10:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10 13:58 [PATCH 0/2] Shared flags Pavel Shilovsky
     [not found] ` <49183DF9.9010003-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2008-11-11  8:52   ` Christoph Hellwig
2008-11-11 10:09     ` Jamie Lokier
2008-11-11 11:14       ` Christoph Hellwig
2008-11-13 10:08         ` Pavel Shilovsky
     [not found]           ` <491BFCBA.80208-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2008-11-13  9:25             ` Christoph Hellwig
2008-11-14  3:37               ` Jamie Lokier
2008-11-15 11:39                 ` Christoph Hellwig
2008-11-16  5:57                   ` Pavel Shilovsky
     [not found]               ` <20081113092554.GA3004-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2008-11-16 10:37                 ` Benny Halevy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).