Skip to content

Commit

Permalink
Handle networking requests synchronously to maintain the current PAM …
Browse files Browse the repository at this point in the history
…context.
  • Loading branch information
Joerger committed Jul 10, 2024
1 parent 744fa50 commit 8bad5d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/srv/reexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,9 @@ func RunNetworking() (errw io.Writer, code int, err error) {
continue
}

go handleNetworkingRequest(ctx, controlConn, buf[:n])
// Starting a new goroutine takes us out of the current PAM context,
// so we handle requests synchronously.
handleNetworkingRequest(ctx, controlConn, buf[:n])
}
}

Expand Down

0 comments on commit 8bad5d5

Please sign in to comment.