Displaying 2 results from an estimated 2 matches for "ssh_channel_unix_listener".
2006 Apr 18
0
SSH_CHANNEL_UNIX_LISTENER
...domain sockets (#ifdef'd
that code out in the parse_forward() work), but now that I've gotten as far
as channel_setup_fwd_listener() it seems like it makes sense to add the
support now, rather than later. Any comments on adding to channels.h
the following (w/ accompanying support)?
#define SSH_CHANNEL_UNIX_LISTENER 15
#define SSH_CHANNEL_RUNIX_LISTENER 16
I'm guessing that this channel type enumeration is specified in one of the
myriad SECSH RFCs. Does the above make sense, or should I really keep my
patch to only supporting local Unix domain sockets support for now.
- Bill
2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...nt
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 listening path too long: %s", fwd->listen_path...