From: Benno Schulenberg <bensberg@telfort.nl>
To: util-linux@vger.kernel.org
Cc: Xiao Liang <shaw.leon@gmail.com>,
Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Subject: [PATCH 3/3] nsenter: (man) correct the markup and improve the formatting
Date: Sun, 8 Mar 2026 12:20:04 +0100 [thread overview]
Message-ID: <20260308112004.9206-3-bensberg@telfort.nl> (raw)
In-Reply-To: <20260308112004.9206-1-bensberg@telfort.nl>
Remove the mistaken angle brackets that were introduced last month
by commit f2a5997869, add the missing equals sign, and put both it
and the subsequent colon in bold as they are literal characters.
Also, indent the list of paths to make it clearer where it ends,
and so that the subsequent paragraph gets indented correctly.
CC: Xiao Liang <shaw.leon@gmail.com>
CC: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
---
sys-utils/nsenter.1.adoc | 45 ++++++++++++++++++++--------------------
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/sys-utils/nsenter.1.adoc b/sys-utils/nsenter.1.adoc
index 9e5bc81da..34fde93ac 100644
--- a/sys-utils/nsenter.1.adoc
+++ b/sys-utils/nsenter.1.adoc
@@ -59,9 +59,10 @@ by namespace-specific options (e.g., **--all --mount=**_path_).
+
The user namespace will be ignored if it is the same as the caller's current user namespace. It prevents a caller that has dropped capabilities from regaining those capabilities via a call to *setns*(2). See the man page for more details.
-*-t*, *--target* _PID[:inode]_::
+*-t*, *--target* _PID_[**:**_inode_]::
Specify a target process to get contexts from. The paths to the contexts specified by _PID_ are:
-
++
+____
_/proc/pid/ns/mnt_;;
the mount namespace
_/proc/pid/ns/uts_;;
@@ -82,41 +83,41 @@ _/proc/pid/root_;;
the root directory
_/proc/pid/cwd_;;
the working directory respectively
-
-Optionally, a process can be addressed with the format _PID:inode_. The _inode_
+____
+Optionally, a process can be addressed with the format _PID_**:**_inode_. The _inode_
identifies the unique process's file descriptor. To retrieve a process's inode
number you can use the *getino*(1) utility.
-*-m*, *--mount*[**=**<__file__|:__nsid__>]::
-Enter the mount namespace. If no argument is specified, enter the mount namespace of the target process. If _file_ or :__nsid__ is specified, enter the mount namespace specified by _file_ or _nsid_.
+*-m*, *--mount*[**=**_file_|**=:**_nsid_]::
+Enter the mount namespace. If no argument is specified, enter the mount namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the mount namespace specified by _file_ or _nsid_.
-*-u*, *--uts*[**=**<__file__|:__nsid__>]::
-Enter the UTS namespace. If no argument is specified, enter the UTS namespace of the target process. If _file_ or :__nsid__ is specified, enter the UTS namespace specified by _file_ or _nsid_.
+*-u*, *--uts*[**=**_file_|**=:**_nsid_]::
+Enter the UTS namespace. If no argument is specified, enter the UTS namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the UTS namespace specified by _file_ or _nsid_.
-*-i*, *--ipc*[**=**<__file__|:__nsid__>]::
-Enter the IPC namespace. If no argument is specified, enter the IPC namespace of the target process. If _file_ or :__nsid__ is specified, enter the IPC namespace specified by _file_ or _nsid_.
+*-i*, *--ipc*[**=**_file_|**=:**_nsid_]::
+Enter the IPC namespace. If no argument is specified, enter the IPC namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the IPC namespace specified by _file_ or _nsid_.
-*-n*, *--net*[**=**<__file__|:__nsid__>]::
-Enter the network namespace. If no argument is specified, enter the network namespace of the target process. If _file_ or :__nsid__ is specified, enter the network namespace specified by _file_ or _nsid_.
+*-n*, *--net*[**=**_file_|**=:**_nsid_]::
+Enter the network namespace. If no argument is specified, enter the network namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the network namespace specified by _file_ or _nsid_.
*-N*, *--net-socket* _fd_::
Enter the network namespace of the target process's socket. It requires *--target* process specified. Supported since Linux 5.6.
-*-p*, *--pid*[**=**<__file__|:__nsid__>]::
-Enter the PID namespace. If no argument is specified, enter the PID namespace of the target process. If _file_ or :__nsid__ is specified, enter the PID namespace specified by _file_ or _nsid_.
+*-p*, *--pid*[**=**_file_|**=:**_nsid_]::
+Enter the PID namespace. If no argument is specified, enter the PID namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the PID namespace specified by _file_ or _nsid_.
-*-U*, *--user*[**=**<__file__|:__nsid__>]::
-Enter the user namespace. If no argument is specified, enter the user namespace of the target process. If _file_ or :__nsid__ is specified, enter the user namespace specified by _file_ or _nsid_. See also the *--setuid* and *--setgid* options.
+*-U*, *--user*[**=**_file_|**=:**_nsid_]::
+Enter the user namespace. If no argument is specified, enter the user namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the user namespace specified by _file_ or _nsid_. See also the *--setuid* and *--setgid* options.
*--user-parent*::
Enter the parent user namespace. Parent user namespace will be acquired from any other enabled namespace.
If combined with *--user* option the parent user namespace will be fetched from the user namespace and replace it.
-*-C*, *--cgroup*[**=**<__file__|:__nsid__>]::
-Enter the cgroup namespace. If no argument is specified, enter the cgroup namespace of the target process. If _file_ or :__nsid__ is specified, enter the cgroup namespace specified by _file_ or _nsid_.
+*-C*, *--cgroup*[**=**_file_|**=:**_nsid_]::
+Enter the cgroup namespace. If no argument is specified, enter the cgroup namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the cgroup namespace specified by _file_ or _nsid_.
-*-T*, *--time*[**=**<__file__|:__nsid__>]::
-Enter the time namespace. If no argument is specified, enter the time namespace of the target process. If _file_ or :__nsid__ is specified, enter the time namespace specified by _file_ or _nsid_.
+*-T*, *--time*[**=**_file_|**=:**_nsid_]::
+Enter the time namespace. If no argument is specified, enter the time namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the time namespace specified by _file_ or _nsid_.
*-G*, *--setgid* _gid_::
Set the group ID which will be used in the entered namespace and drop supplementary groups.
@@ -161,8 +162,8 @@ include::man-common/help-version.adoc[]
The *--user-parent* option requires Linux 4.9 or higher, older kernels will raise inappropriate ioctl for device error.
-Specifying namespaces by _nsid_ requires Linux 6.19 or higher. If a namespace
-file name starts with a colon, prepend "./" for disambiguation.
+Specifying namespaces by _nsid_ requires Linux 6.19 or higher.
+If a namespace _file_ name starts with a colon, prepend *./* for disambiguation.
== AUTHORS
--
2.53.0
next prev parent reply other threads:[~2026-03-08 11:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 11:20 [PATCH 1/3] nsenter: (usage) correct the formatting of eight option arguments Benno Schulenberg
2026-03-08 11:20 ` [PATCH 2/3] nsenter: (usage) improve the alignment of the option descriptions Benno Schulenberg
2026-03-08 11:20 ` Benno Schulenberg [this message]
2026-03-09 1:52 ` [PATCH 1/3] nsenter: (usage) correct the formatting of eight option arguments Xiao Liang
2026-03-12 10:14 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260308112004.9206-3-bensberg@telfort.nl \
--to=bensberg@telfort.nl \
--cc=cgoesc2@wgu.edu \
--cc=shaw.leon@gmail.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox