aboutgitcodebugslistschat
path: root/passt.1
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-08-26 14:58:38 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-08-30 19:43:31 +0200
commitc188736cd81aab5924073118f11d1b9dc7696382 (patch)
tree9351f55cc385e655b29fd6c307fd4d2a7a244faf /passt.1
parent9e0dbc8948138053a8cc8e5a98632fafdead921f (diff)
downloadpasst-c188736cd81aab5924073118f11d1b9dc7696382.tar
passt-c188736cd81aab5924073118f11d1b9dc7696382.tar.gz
passt-c188736cd81aab5924073118f11d1b9dc7696382.tar.bz2
passt-c188736cd81aab5924073118f11d1b9dc7696382.tar.lz
passt-c188736cd81aab5924073118f11d1b9dc7696382.tar.xz
passt-c188736cd81aab5924073118f11d1b9dc7696382.tar.zst
passt-c188736cd81aab5924073118f11d1b9dc7696382.zip
Use explicit --netns option rather than multiplexing with PID
When attaching to an existing namespace, pasta can take a PID or the name or path of a network namespace as a non-option parameter. We disambiguate based on what the parameter looks like. Make this more explicit by using a --netns option for explicitly giving the path or name, and treating a non-option argument always as a PID. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> [sbrivio: Fix typo in man page] Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.1')
-rw-r--r--passt.116
1 files changed, 13 insertions, 3 deletions
diff --git a/passt.1 b/passt.1
index bbdadc1..1f0cd47 100644
--- a/passt.1
+++ b/passt.1
@@ -15,7 +15,10 @@
[\fIOPTION\fR]...
.br
.B pasta
-[\fIOPTION\fR]... [\fIPID\fR|\fIPATH\fR|\fINAME\fR]
+[\fIOPTION\fR]... [\fIPID\fR]
+.br
+.B pasta
+[\fIOPTION\fR]... \fB--netns\fR [\fIPATH\fR|\fINAME\fR]
.SH DESCRIPTION
@@ -59,7 +62,7 @@ or with the \fBqrap\fR(1) wrapper.
equivalent functionality to network namespaces, as the one offered by
\fBpasst\fR for virtual machines.
-If PID, PATH or NAME are given, \fBpasta\fR associates to an existing user and
+If PID or --netns are given, \fBpasta\fR associates to an existing user and
network namespace. Otherwise, \fBpasta\fR creates a new user and network
namespace, and spawns an interactive shell within this context. A \fItap\fR
device within the network namespace is created to provide network connectivity.
@@ -445,7 +448,14 @@ Default is \fBauto\fR.
Target user namespace to join, as a path. If PID is given, without this option,
the user namespace will be the one of the corresponding process.
-This option requires PID, PATH or NAME to be specified.
+This option requires --netns or a PID to be specified.
+
+.TP
+.BR \-\-netns " " \fIspec
+Target network namespace to join, as a path or a name. A name is treated as
+with \fBip-netns(8)\fR as equivalent to a path in \fI/run/netns\fR.
+
+This option can't be specified with a PID.
.TP
.BR \-\-netns-only