From: Karel Zak Date: Thu, 13 Apr 2023 10:29:55 +0000 (+0200) Subject: nsenter: (man) add --keep-caps X-Git-Tag: v2.40-rc1~424^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=575d71fde1cd17c177d767aae061b64ca294831e;p=thirdparty%2Futil-linux.git nsenter: (man) add --keep-caps Signed-off-by: Karel Zak --- diff --git a/bash-completion/nsenter b/bash-completion/nsenter index 86c76dbc0a..50763837ef 100644 --- a/bash-completion/nsenter +++ b/bash-completion/nsenter @@ -45,6 +45,7 @@ _nsenter_module() --time= --setuid --setgid + --keep-caps --preserve-credentials --root= --wd= diff --git a/sys-utils/nsenter.1.adoc b/sys-utils/nsenter.1.adoc index c05352638d..cf7e338301 100644 --- a/sys-utils/nsenter.1.adoc +++ b/sys-utils/nsenter.1.adoc @@ -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.