[PATCH 8/8] deprecate open("foo", 3)

2005-08-23 Thread Miklos Szeredi
Deprecate access mode of '3' in open() as suggested by Linus. Signed-off-by: Miklos Szeredi <[EMAIL PROTECTED]> Index: linux/fs/open.c === --- linux.orig/fs/open.c2005-08-23 13:15:49.0 +0200 +++ linux/fs/open.c 20

Re: open("foo", 3)

2005-08-20 Thread Steven Rostedt
On Sat, 2005-08-20 at 10:30 -0700, Linus Torvalds wrote: > > On Sat, 20 Aug 2005, Miklos Szeredi wrote: > > > > My question is: is this deliberate or accidental? Wouldn't it be more > > logical to not require any permission to open such file? Or is there > > some security concern with that? >

Re: open("foo", 3)

2005-08-20 Thread Linus Torvalds
On Sat, 20 Aug 2005, Miklos Szeredi wrote: > > My question is: is this deliberate or accidental? Wouldn't it be more > logical to not require any permission to open such file? Or is there > some security concern with that? It's deliberate but historical. It's been a long time since I worked o

open("foo", 3)

2005-08-20 Thread Miklos Szeredi
Linus et Al, Access mode of 3 is undocumented but it does do something halfway sane on all linuxes (checked back to 2.0.X). The open requires both read and write permission to succeed, but the resulting file descriptor can neither be read nor written. The responsible code in filp_open() is this: