summaryrefslogtreecommitdiffstats
path: root/sys-utils/nsenter.1
Commit message (Collapse)AuthorAgeFilesLines
* man: Use the correct macro for a font change of one argumentBjarni Ingi Gislason2018-05-231-9/+9
| | | | | | | | Use the correct macro (I, B) for the font change of one argument, not those that are used for alternating two fonts, like "BR", "IR", "RB", or "RI". Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* nsenter: fix usage() and improve man pageKarel Zak2017-01-091-4/+3Star
| | | | | | | The "program" is optional and $SHELL is executed by default. Addresses: https://github.com/karelzak/util-linux/issues/389 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* nsenter: add --all optionKarel Zak2016-12-131-0/+12
| | | | | | | Let's make it easy for users to enter target process namespaces. Addresses: https://github.com/karelzak/util-linux/issues/382 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: nsenter(1): add missing 'see also' for --userKarel Zak2016-12-051-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: nsenter(1): Formatting fixMichael Kerrisk2016-12-051-14/+36
| | | | | | Add formatting for 'file' argument used by various options. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: nsenter(1): Describe the 'file' argument used by namespace optionsMichael Kerrisk2016-12-051-0/+7
| | | | Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* IPC namespaces also isolate POSIX message queuesMichael Kerrisk (man-pages)2016-11-291-1/+2
| | | | | | | | As described in pid_namespaces(7), IPC namespaces also isolate POSIX message queues. Update the unshare(1) and nsenter(1) pages to clarify that. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Provide better cross references for namespace conceptsMichael Kerrisk (man-pages)2016-11-291-15/+44
| | | | | | | | For each namespace that is discussed, add more explicit references to the corresponding clone(2) flags and add references to relevant section 7 namespace pages. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* SEE ALSO: add cross reference to namespaces(7)Michael Kerrisk (man-pages)2016-11-291-1/+2
| | | | | | Rationale: both of these pages are about namespaces. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-291-2/+2
| | | | | | | | | | | | This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Implement support for cgroup namespacesSerge Hallyn2016-03-031-0/+14
| | | | | | Currently these are supported in #for-next. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
* nsenter: add -Z to set selinux contextKarel Zak2015-03-201-3/+12
| | | | | | | | The new context is copied from --target <PID>. This solution allows to keep SELinux happy when you enter container by nsenter(1). Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1116100 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-2/+2
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* nsenter: add --preserve-credentials and cleanup setgroups() usageKarel Zak2015-01-091-0/+4
| | | | | | | | | | | | | The new option --preserve-credentials completely disables all operations related to UIGs and GIDs. The patch also calls setgroups() before we enter user namespace (so root can always clear their groups) and after we enter user namespace (to detect /proc/self/setgroups "deny"). If both fail then nsenter complains. Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* nsenter: allow to use --set{uid,gid} for all namespacesKarel Zak2014-07-291-2/+7
| | | | | | | | | Now it's possible to set UID and GID for user namespaces only. This patch removes this restriction and allow to use --set{uid,gid} in all cases. The default for user namespaces is still GID=0, UID=0. Reported-by: Tomas Doran <bobtfish@bobtfish.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: bring five more man pages closer to standard formattingBenno Schulenberg2014-07-211-1/+1
| | | | | | | Also, for renice, adapt the descriptions to the behaviour: the -g, -p and -u options do not actually need to be followed by any ID. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: tweak wording and formatting of unshare and nsenter man pagesBenno Schulenberg2013-10-151-5/+5
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* nsenter: Allow selecting the uid and gid to be used in the entered usernsRichard Weinberger2013-06-181-1/+7
| | | | | | | | | | | | Using -S (--setuid) and -G (--setgid) one can select the uid/gid which will be used in the entered user namespace. [kzak@redhat.com: - use setuid/gid unconditionally (always), - update man page] Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: normalize the formatting of man pages for nsenter and unshareBenno Schulenberg2013-06-071-55/+51Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* nsenter: fix errors in manpageZbigniew Jędrzejewski-Szmek2013-02-141-15/+21
| | | | | | | - spell abbreviations with capital letters - fix the names of a few options and files Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
* unshare,nsenter: spawn shell by defaultZbigniew Jędrzejewski-Szmek2013-02-141-1/+4
| | | | | | | | | | | | | The behaviour mimics chroot. Possibly it would have been nicer to to query the password database in the new namepace and run the shell of the user there, but it's hard to do correctly. getpwuid() might need to load nss plugins, and the arch in the new namespace might be different (in case of NEWNS mounts), or the hostname might be different, etc. So in general it's not possible to do it reliably. Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
* docs: align nsenter.1 man page with howto-man-page.txtSami Kerola2013-01-251-75/+126
| | | | | | | | | | | | | | Most visible change; the --target option has a path - explanation table instead a long paragraph. This makes pairing of the information easier for an average user such as me. The rest of the changes are about aligning with howto, i.e., fix spaces after dots, URL & mail address macros, remove inline emphasis where possible, mark directory paths and words with underscore to be line breakable, use optional option syntax from howto, cut line lenght to 80 chars. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* nsenter: rename --exec/-e to --no-fork/-FZbigniew Jędrzejewski-Szmek2013-01-251-1/+1
| | | | | | | | | | The naming of this option was really confusing. Just rename it for clarity. [kzak@redhat.com: rebase to original code without --all] Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> Signed-off-by: Karel Zak <kzak@redhat.com>
* nsenter: improve optional args in usage() and man pageKarel Zak2013-01-171-9/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* nsenter: new command (light wrapper around setns)Eric W. Biederman2013-01-171-0/+101
Inspired by unshare, nsenter is a simple wrapper around setns that allows running a new process in the context of an existing process. Full paths may be specified to the namespace arguments so that namespace file descriptors may be used wherever they reside in the filesystem. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>