search for: listen_path

Displaying 6 results from an estimated 6 matches for "listen_path".

2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...p2 + 1; + } + return ret; +} + static int channel_setup_fwd_listener_streamlocal(int type, struct Forward *fwd, struct ForwardOptions *fwd_opts) @@ -3005,6 +3058,7 @@ channel_setup_fwd_listener_streamlocal(int type, struct Forward *fwd, Channel *c; int port, sock; mode_t omask; + char *listen_path; switch (type) { case SSH_CHANNEL_UNIX_LISTENER: @@ -3042,22 +3096,39 @@ channel_setup_fwd_listener_streamlocal(int type, struct Forward *fwd, error("No forward path name."); return 0; } - if (strlen(fwd->listen_path) > sizeof(sunaddr.sun_path)) { - error("Local...
2015 Aug 17
2
[PATCH] Expand tilde for UNIX domain socket forwards.
...ged, 5 insertions(+), 1 deletion(-) diff --git a/channels.c b/channels.c index a84b487..396e192 100644 --- a/channels.c +++ b/channels.c @@ -3014,10 +3014,14 @@ channel_setup_fwd_listener_streamlocal(int type, struct Forward *fwd, debug3("%s: type %d path %s", __func__, type, fwd->listen_path); + /* Expand home directory if necessary */ + char *expanded_path = tilde_expand_filename(fwd->listen_path, getuid()); + /* Start a Unix domain listener. */ omask = umask(fwd_opts->streamlocal_bind_mask); - sock = unix_listener(fwd->listen_path, SSH_LISTEN_BACKLOG, + sock = unix_lis...
2005 Feb 26
1
[Fwd: [Xen-changelog] Move xcs to unix domain sockets.]
Just forwarding this changelog from yesterday. xcs now uses Unix domain sockets in unstable. This was a hot thread a couple months back with strong opinions on both sides and no clear resolution on the list, so I thought some people might like to know the developers'' resolution. This should be good news for those seeking tighter dom0''s, particularly those who
2016 Jul 21
7
[Bug 2601] New: StreamLocalBindUnlink not working
...t.org Reporter: harald at redhat.com StreamLocalBindUnlink is advertised as an option for the client program. Following the codepath, it ends up as an option for the server program. Server process receives in serverloop.c:1409 "streamlocal-forward at openssh.com" receives fwd.listen_path calls channel_setup_remote_fwd_listener(&fwd, NULL, &options.fwd_opts) channels.c: channel_setup_local_fwd_listener -> channel_setup_fwd_listener_streamlocal channel_setup_fwd_listener_streamlocal(int type, struct Forward *fwd, struct ForwardOptions *fwd_opts) calls unix_listener...
2019 Mar 29
2
Call for testing: OpenSSH 8.0
...%s", __func__, ssh_err(r)); debug("%s: listen %s port %d, originator %s port %d", __func__, listen_address, listen_port, originator_address, originator_port); @@ -1559,9 +1559,9 @@ client_request_forwarded_streamlocal(struct ssh *ssh, if ((r = sshpkt_get_cstring(ssh, &listen_path, NULL)) != 0 || (r = sshpkt_get_string(ssh, NULL, NULL)) != 0 || /* reserved */ (r = sshpkt_get_end(ssh)) != 0) - fatal("%s: %s", __func__, ssh_err(r)); + fatal("%s: parse packet: %s", __func__, ssh_err(r)); - debug("%s: %s", __func__, listen_path); + d...
2019 Mar 27
26
Call for testing: OpenSSH 8.0
Hi, OpenSSH 8.0p1 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH is also available via git using the instructions at