mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 14:43:19 +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
@@ -177,3 +177,7 @@ func maybeStartLoginSessionLinux(logf logger.Logf, ia incubatorArgs) (func() err
|
||||
func (ia *incubatorArgs) loginArgs() []string {
|
||||
return []string{ia.loginCmdPath, "-f", ia.localUser, "-h", ia.remoteIP, "-p"}
|
||||
}
|
||||
|
||||
func setGroups(groupIDs []int) error {
|
||||
return syscall.Setgroups(groupIDs)
|
||||
}
|
||||
|
Reference in New Issue
Block a user