[PATCH v3] posix: Deprecate group_member for Linux

Florian Weimer fweimer@redhat.com
Tue Dec 12 11:51:28 GMT 2023


* Joe Simmons-Talbott:

>> There are __group_member calls in sysdeps/posix/euidaccess.c and
>> sysdeps/unix/sysv/linux/faccessat.c.  We can return ENOMEM in those
>> cases.  Furthermore, euidaccess should really be layered on top of
>> faccessat (and use kernel support for AT_EACCESS if available).
>> 
>> Those are separate changes, but necessary to avoid exposing the alloca
>> path to non-deprecated functionality.
>
> Thanks for pointing those out.  So are you suggesting that I perhaps do
> need to create an internal only __group_member2 that uses malloc or a
> scratch_buffer?

Yes, I think that would be prudent.

Thanks,
Florian



More information about the Libc-alpha mailing list