This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] linux: open and openat ignore 'mode' with O_TMPFILE in flags
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: Eric Rannaud <e at nanocritical dot com>, Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org, joseph at codesourcery dot com
- Date: Sun, 02 Nov 2014 17:35:35 +0100
- Subject: Re: [PATCH v2] linux: open and openat ignore 'mode' with O_TMPFILE in flags
- Authentication-results: sourceware.org; auth=none
- References: <CAH_=xoZcXehKgY6jviDbmUpOxS7Vn_pWm75zzr+mT4dGop5sjQ at mail dot gmail dot com> <9e272d5ae70d7db36329c99785aefa9d32f0964d dot 1414714637 dot git dot e at nanocritical dot com> <CAH_=xoZbC1064T13ZXXdYp8c2mU15QANumefm1XzWCEG-XuDMg at mail dot gmail dot com> <87bnopwq3c dot fsf at mid dot deneb dot enyo dot de>
Florian Weimer <fw@deneb.enyo.de> writes:
> Anyway, I think the definition of __OPEN_NEEDS_MODE is still
> incorrect. It should check for any unknown flags in addition to
> O_CREAT and O_TMPFILE. Otherwise, we'll run into the same problem
> again.
That will be incompatible with the fortify definition in
<bits/fcntl2.h>.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."