4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-27 09:37:24 +08:00
Corinna Vinschen 0e3bb302de Cygwin: newgrp: only allow group from supplementary group list
Windows only allows to set the primary group to a group already
present in the TOKEN_GROUP list.  Cygwin OTOH fakes success at
setgid() time, to allow a subsequent call to setuid() to do
the actual account switching.  To have a sane behaviour in the
command line tool, check group membership and disallow to switch
to groups other than those already present in the user token.

Fixes: 8bd56ec873453 ("Cygwin: newgrp: first full version")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-02-24 13:08:34 +01:00
..
2018-01-19 13:19:21 -06:00
2024-02-14 14:00:34 +01:00
2021-05-10 14:41:39 +01:00
2024-02-01 17:20:17 +01:00