]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
nsenter: (man) add --keep-caps
authorKarel Zak <kzak@redhat.com>
Thu, 13 Apr 2023 10:29:55 +0000 (12:29 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 13 Apr 2023 10:29:55 +0000 (12:29 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/nsenter
sys-utils/nsenter.1.adoc

index 86c76dbc0a7966050e4a529fff1dce65890f7cf4..50763837ef2d20f86b2ca8f251ff6fcc561baa1a 100644 (file)
@@ -45,6 +45,7 @@ _nsenter_module()
                                --time=
                                --setuid
                                --setgid
+                               --keep-caps
                                --preserve-credentials
                                --root=
                                --wd=
index c05352638dde00c150e12145387b45738d77f4b9..cf7e338301bc0de3c045daeed8046c2ab0f710e8 100644 (file)
@@ -113,6 +113,9 @@ Set the user ID which will be used in the entered namespace.
 *nsenter* always sets UID for user namespaces, the default is 0.
 If the argument "follow" is specified the UID of the target process is used.
 
+*--keep-caps*::
+When the *--user* option is given, ensure that capabilities granted in the user namespace are preserved in the child process.
+
 *--preserve-credentials*::
 Don't modify UID and GID when enter user namespace. The default is to drops supplementary groups and sets GID and UID to 0.