tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: more fexecve questions
On Wed, Sep 11, 2019 at 06:34:11AM +0300, Jason Thorpe wrote:
> > The implementation I posted requires O_EXEC because this is the only way
> > to set FEXEC which is part of the check_exec() tests. Of course we can
> > elide this test and not require it in the fd case. It just seems nicely
> > symmetric to me the way it is now.
>
> It may be "nicely symmetrical", but it's not a correct
> implementation. O_RDONLY (without O_EXEC) is explicitly allowed.
...by a POSIX_MISTAKE :-)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index