mirror of https://github.com/wolfSSL/wolfssh.git
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 |
||
|---|---|---|
| .. | ||
| echoserver.c | ||
| echoserver.h | ||
| include.am | ||