summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
...
* umount: add note about namespaces too --all-targetsKarel Zak2013-02-272-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: add --all-targetsKarel Zak2013-02-262-59/+136
| | | | | | | | | | | | | | | | | | | | | The same source (whole filesystem or filesystems subvolume) could be mounted on more targets (mountpoints). For example bind mounts or btrfs sub-volumes. If you want to detach the source device from the system then you need to unmount all the mountpoints. umount --all-targets <device|mountpoint> provides this functionality. This option could be used together with --recursive. Then all nested mountpoints within the filesystem are unmounted too. For example: umount --recursive --all-targets /dev/sdb1 should be a way how to make the device unmounted at all. Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: improve --recursive docsKarel Zak2013-02-251-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mountpoint: don't hardcode pathsKarel Zak2013-02-141-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: don't read cpuid on non-live systemsKarel Zak2013-02-141-3/+4
| | | | | Reported-by: Luis Aranguren <pizzaman@hotmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* 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-144-15/+19
| | | | | | | | | | | | | 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>
* switch_root: Add a sanity checkRichard Weinberger2013-02-131-1/+7
| | | | | | | As switch_root basically does rm -Rf / we should make sure that / is really an initramfs. Signed-off-by: Richard Weinberger <richard@nod.at>
* libmount: correctly propagate ambivalent blkid probing resultsKarel Zak2013-02-131-0/+5
| | | | | | | | libmount ignores "ambivalent probing result" from libblkid and tries filesystems /etc/filesystems. This is incorrect behavior. Reported-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* setpriv: Fix an error message typoAndy Lutomirski2013-02-061-1/+1
| | | | Signed-off-by: Andy Lutomirski <luto@amacapital.net>
* eject: remove a duplicate command name from error messageSami Kerola2013-02-061-1/+1
| | | | | | Let the err() print the command name. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* translation: unify exec error messagesSami Kerola2013-02-068-9/+9
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: spell and encode the name of Arkadiusz Miśkiewicz correctlyBenno Schulenberg2013-02-068-8/+8
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* mount: fix bind mount success messageBernhard Voelker2013-02-061-1/+1
| | | | | | * sys-utils/mount.c (success_message): s/binded/bound/. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* docs: improve wording, formatting and accuracy of ipcs man pageBenno Schulenberg2013-02-061-34/+39
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* ipcs: report an error when -i is used with multiple resourcesBenno Schulenberg2013-02-061-19/+19
| | | | | | Also put everything in POSIX order: queues, memory, sempahores. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* setpriv: move paths to pathnames.hKarel Zak2013-02-051-17/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setpriv: run a program with different Linux privilege settingsAndy Lutomirski2013-02-053-0/+970
| | | | | | | | | | | | This new command can set no_new_privs, uid, gid, groups, securebits, inheritable caps, the cap bounding set, securebits, and selinux and apparmor labels. [kerolasa@iki.fi: a lot of small adjustment making the command to be good fit to util-linux project] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
* fstrim: remove unnecessary "were" from verbose messageKarel Zak2013-01-301-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: remove ext4 journal=update from man pageKarel Zak2013-01-301-3/+0Star
| | | | | | | | It's already unsupported. References: http://patchwork.ozlabs.org/patch/123291/ Reported-by: Roman Žilka <roman.zilka@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: fix usage()Karel Zak2013-01-301-1/+1
|
* textual: slice the help text of lscpu into strips, for translatorsBenno Schulenberg2013-01-301-11/+11
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: standardize the reporting of program name plus package versionBenno Schulenberg2013-01-301-2/+1Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* doc: remove incorrect spaces from lscpu synopsis in manpageBenno Schulenberg2013-01-301-30/+29Star
| | | | | | Also normalize text spacing and add some formatting. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lscpu: correct the description of --sysroot in help textBenno Schulenberg2013-01-301-3/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fstrim: use human readable sizes in verbose outputKarel Zak2013-01-281-3/+9
| | | | | | | | # fstrim -v /home /home: 513.9 MiB (538828800 bytes) were trimmed Reported-by: member graysky <graysky@archlinux.us> Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare: make usage() translator friendlySami Kerola2013-01-251-6/+6
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* umount: make usage() translator friendlySami Kerola2013-01-251-16/+13Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* losetup: make usage() translator friendlySami Kerola2013-01-251-8/+8
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: make usage() change translator friendlySami Kerola2013-01-251-2/+2
| | | | | | | The --compare option from 83765871ef0d6c554c46027577648b77c7351a78 is made to be separate fputs() line. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: make usage() translator friendlySami Kerola2013-01-251-40/+35Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* nsenter: make usage() translator friendlySami Kerola2013-01-251-10/+11
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* nsenter: respect --exec no matter where it appearsZbigniew Jędrzejewski-Szmek2013-01-251-4/+6
| | | | | Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> Signed-off-by: Karel Zak <kzak@redhat.com>
* 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: fix indentationSami Kerola2013-01-251-12/+17
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* nsenter: drop core when impossible happensSami Kerola2013-01-251-1/+2
| | | | | | | Message to user is less informative, but impossible events should be rare so core files are much appriciated for these cases. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* nsenter: fix compiler warningSami Kerola2013-01-251-1/+1
| | | | | | | | | nsenter.c:53:2: warning: ISO C forbids empty initializer braces [-pedantic] [kzak@redhat.com: - use initialize .fd to -1] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* nsenter: adjust few error messagesSami Kerola2013-01-251-6/+6
| | | | | | | | | | | | | | The 'neither filename nor target' is changed to use errx() rather than err(), because the errno is indicating success at the time of fatal error which is wrong message for an user. The "cannot open %s" is same string as in other files, making translators to work less. Remaining changes aim to ease understanding what went wrong for a non-programmer audience. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* nsenter: rename --exec/-e to --no-fork/-FZbigniew Jędrzejewski-Szmek2013-01-252-11/+12
| | | | | | | | | | 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: allow arguments to be specified in any orderZbigniew Jędrzejewski-Szmek2013-01-251-9/+46
| | | | | | | | | Allows 'nsenter -mt $PID', which would fail previously. [kzak@redhat.com: - fix open_target_fd() arguments] Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> Signed-off-by: Karel Zak <kzak@redhat.com>
* renice: accept also -V for --version, and document itBenno Schulenberg2013-01-252-41/+36Star
| | | | | | Also improve the man page. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* renice: correct the usage synopsis, and improve help textBenno Schulenberg2013-01-251-9/+9
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: standardize reporting of program name plus package versionBenno Schulenberg2013-01-253-3/+6
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: gettextize several overlooked messagesBenno Schulenberg2013-01-251-1/+1
| | | | | | Also improve the clarity of some of them. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: remove inconsistent periods from two error messagesBenno Schulenberg2013-01-251-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* dmesg: parse level when --color is usedSami Kerola2013-01-251-1/+1
| | | | | | | When user runs with --color it should not need to be combined with filtering per level or facility, or decoding. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: add boundary check to facility & level array usageSami Kerola2013-01-251-1/+3
| | | | | | | The dmesg should not crash while --decode'ing message facilities and levels to readable string even if the values are out of bounds. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* ipcmk: use random_get_bytes() to generate IPC keysKarel Zak2013-01-241-11/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* nsenter: improve optional args in usage() and man pageKarel Zak2013-01-172-19/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare,nsenter: Move the old libc handling into a common header namespace.hEric W. Biederman2013-01-172-55/+2Star
| | | | | | | | | | | | | | Move the defitions of CLONE_NEWNS, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWUSER, CLONE_NEWPID into namespace.h in case sched.h does not provide those definitions. Are there systems around that are old enough that still need this? Move the definitions of unshare() and setns() into namespace.h for supporting old versions of libc that does not provice these. I have tested this support with setns as I still have systems old enough that glibc does not wrap setns. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>