[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20091104211552.2F1A.0@paddy.troja.mff.cuni.cz>
Date: Wed, 4 Nov 2009 21:29:23 +0100 (CET)
From: Pavel Kankovsky <peak@...o.troja.mff.cuni.cz>
To: mrex@....com
Cc: Gabor Gombas <gombasg@...aki.hu>, <pavel@....cz>, <jim@...n.com>,
<marco@....nl>, <dan@...htwave.net.ru>, <bugtraq@...urityfocus.com>
Subject: Re: /proc filesystem allows bypassing directory permissions on
On Tue, 3 Nov 2009, Martin Rex wrote:
> I couldn't find anything in the the POSIX 1003.1-2004 Online Edition
> that _requires_ this to fail:
It is required to do nothing:
F_SETFL
Set the file status flags, defined in <fcntl.h>, for the file
description associated with fildes from the corresponding bits in the
third argument, arg, taken as type int. Bits corresponding to the file
access mode and the file creation flags, as defined in <fcntl.h>, that are
set in arg shall be ignored. If any bits in arg other than those mentioned
here are changed by the application, the result is unspecified.
(And curmode &= ~O_RDONLY is not correct, see the rationale for
open().)
--
Pavel Kankovsky aka Peak / Jeremiah 9:21 \
"For death is come up into our MS Windows(tm)..." \ 21st century edition /
Powered by blists - more mailing lists