Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 1997 14:22:11 -0400 (EDT)
From:      "David E. Cross" <dec@phoenix.its.rpi.edu>
To:        J Wunsch <j@uriah.heep.sax.de>
Cc:        FreeBSD hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Possible SERIOUS bug in open()?
Message-ID:  <Pine.BSF.3.96.971022142133.15884B-100000@phoenix.its.rpi.edu>
In-Reply-To: <19971022190225.DV50844@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 22 Oct 1997, J Wunsch wrote:

> As Jamil J. Weatherbee wrote:
> 
> > > > This was sent to me recently...  It seems to be a pretty serious hole
> > > > in open() and permissions...
> > > 
> > > Fixed.
> > 
> > How exactly did you fix it, this is related to what I was saying about
> > opening a file as RD_ONLY and WR_ONLY, ...
> 
> Yep, this was in the same boat.  The way the fix works, only one of
> O_RDONLY, O_WRONLY, or O_RDWR should be possible now, and anything
> else should be rejected as EINVAL.

I thought that O_RDRW = O_RDONLY | O_WRONLY.

--
David Cross
ACS Consultant




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971022142133.15884B-100000>