diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2016-08-02 18:19:34 +0000 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-08-03 07:23:30 -0700 |
commit | 922247c68438d5718dbfbbb11d6c4bb0799105c7 (patch) | |
tree | 42ab6d3f604ab597c1d2db83dd52eb11a89c987f /ovsdb | |
parent | 13a08aa9061465d30e89dcbb58c759f05d3c181d (diff) | |
download | openvswitch-922247c68438d5718dbfbbb11d6c4bb0799105c7.tar.gz |
Windows: Local named pipe implementation
Currently in the case of command line arguments punix/unix, on Windows
we create a file, write a TCP port number to connect. This is a security
concern.
This patch adds support for the command line arguments punix/unix trying
to mimic AF_UNIX behind a local named pipe.
This patch drops the TCP socket implementation behind command line
arguments punix/unix and switches to the local named pipe implementation.
Since we do not write anything to the file created by the punix/unix
arguments, switch tests to plain file existence.
Man pages and code comments have been updated.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Acked-by: Paul Boca <pboca@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'ovsdb')
-rw-r--r-- | ovsdb/remote-active.man | 5 | ||||
-rw-r--r-- | ovsdb/remote-passive.man | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ovsdb/remote-active.man b/ovsdb/remote-active.man index 22b350c1a..83d64652d 100644 --- a/ovsdb/remote-active.man +++ b/ovsdb/remote-active.man @@ -14,5 +14,6 @@ square brackets, e.g.: \fBtcp:[::1]:6640\fR. .IP "\fBunix:\fIfile\fR" On POSIX, connect to the Unix domain server socket named \fIfile\fR. .IP -On Windows, connect to a localhost TCP port whose value is written in -\fIfile\fR. +On Windows, connect to a local named pipe that is represented by a file +created in the path \fIfile\fR to mimic the behavior of a Unix domain +socket. diff --git a/ovsdb/remote-passive.man b/ovsdb/remote-passive.man index a05f79695..5da2de87b 100644 --- a/ovsdb/remote-passive.man +++ b/ovsdb/remote-passive.man @@ -22,5 +22,5 @@ an IPv6 address, then wrap \fIip\fR with square brackets, e.g.: On POSIX, listen on the Unix domain server socket named \fIfile\fR for a connection. .IP -On Windows, listen on a kernel chosen TCP port on the localhost. The kernel -chosen TCP port value is written in \fIfile\fR. +On Windows, listen on a local named pipe. A file is created in the +path \fIfile\fR to mimic the behavior of a Unix domain socket. |