wolfssh/examples
John Safranek 5cd0ebb2d6 echoserver: run the shell as the logged-in user
When the echoserver runs as root, the forkpty child hands the pty
slave to the authenticated user, mode 0620, so the shell can reopen
its terminal, then takes that user's groups, gid and uid and closes
every descriptor above stderr before it execs the shell. It exits
without a shell if any step fails or root can be regained.

- configure: check for closefrom(), with a close() loop as fallback
- a server that is not root starts the shell as before

Issue: F-8857
2026-11-18 17:02:56 -06:00
..
client
…
echoserver echoserver: run the shell as the logged-in user 2026-11-18 17:02:56 -06:00
portfwd
…
scpclient
…
sftpclient
…
tpmcertserver
…
include.am
…