mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-20 18:07:34 +00:00
ssh/tailssh: limit setgroups to 16 on macOS
Fixes #4938 Signed-off-by: Adam Eijdenberg <adam@continusec.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
7f807fef6c
commit
9294a14a37
@@ -225,7 +225,8 @@ func beIncubator(args []string) error {
|
||||
}
|
||||
groupIDs = append(groupIDs, int(gid))
|
||||
}
|
||||
if err := syscall.Setgroups(groupIDs); err != nil {
|
||||
|
||||
if err := setGroups(groupIDs); err != nil {
|
||||
return err
|
||||
}
|
||||
if egid := os.Getegid(); egid != ia.gid {
|
||||
|
Reference in New Issue
Block a user