[klibc] proposed faccessat

Herbert Xu herbert at gondor.hengli.com.au
Mon Apr 19 22:14:51 PDT 2010


On Tue, Apr 20, 2010 at 06:12:10AM +0200, maximilian attems wrote:
> 
> why, what do you miss?

In particular, it'll give the wrong answer when egid != gid.

> hmm which of those cornercases do you expect in an initramfs?

Sure most initramfs images won't care, but the one who is trying
to setgid and finding this defect is going to be mightily surprised.

> (I didn't look at glibc faccessat() merely at faccessat(2).)

Please take a look at it.  I don't think it saves that many bytes
by ignoring F_EACCESSAT.  The potential to surprise is just not
worth it.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



More information about the klibc mailing list