Home
last modified time | relevance | path

Searched hist:"91658080 f1a598ddda03943a783c9a941199f7d2" (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/kern/
H A Dkern_prot.cdiff 91658080f1a598ddda03943a783c9a941199f7d2 Fri Aug 18 01:54:45 CEST 2023 Olivier Certner <olce.freebsd@certner.fr> cr_canseeothergids(): Use real instead of effective group membership

Using the effective group and not the real one when testing membership
has the consequence that unprivileged processes cannot see setuid
commands they launch until these have relinquished their privileges.
This is also in contradiction with how the similar cr_canseeotheruids()
works, i.e., by taking into account real user IDs.

Fix this by substituting groupmember() with realgroupmember(). While
here, simplify the code.

PR: 272093
Reviewed by: mhorne
MFC after: 2 weeks
Sponsored by: Kumacom SAS
Differential Revision: https://reviews.freebsd.org/D40642