version 1.368, 2021/07/23 04:00:59 |
version 1.369, 2021/07/23 04:04:52 |
|
|
/* import options */ |
/* import options */ |
extern Options options; |
extern Options options; |
|
|
/* Flag indicating that ssh should daemonise after authentication is complete */ |
|
extern int fork_after_authentication_flag; |
|
|
|
/* Control socket */ |
/* Control socket */ |
extern int muxserver_sock; /* XXX use mux_client_cleanup() instead */ |
extern int muxserver_sock; /* XXX use mux_client_cleanup() instead */ |
|
|
|
|
fatal_f("pledge(): %s", strerror(errno)); |
fatal_f("pledge(): %s", strerror(errno)); |
|
|
} else if (!option_clear_or_none(options.proxy_command) || |
} else if (!option_clear_or_none(options.proxy_command) || |
fork_after_authentication_flag) { |
options.fork_after_authentication) { |
debug("pledge: proc"); |
debug("pledge: proc"); |
if (pledge("stdio cpath unix inet dns proc tty", NULL) == -1) |
if (pledge("stdio cpath unix inet dns proc tty", NULL) == -1) |
fatal_f("pledge(): %s", strerror(errno)); |
fatal_f("pledge(): %s", strerror(errno)); |