summaryrefslogtreecommitdiffstats
path: root/sys-utils/Makemodule.am
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: support ./configure ADJTIME_PATH=Karel Zak2014-06-191-0/+2
| | | | | | | .. to override the default /etc/adjtime path. Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: add shortcut binary uname26Ruediger Meier2014-05-221-1/+1
| | | | | | | | | | There are some uname26 binaries flying around. Let's make it available everywhere. Internal SUSE references: fate313476, sr226509 CC: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: add BUILD_ vars for all Linux-only utilsKarel Zak2014-05-211-8/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: move to login-utilsOndrej Oprala2014-05-151-10/+0Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* lslogins(1): skeleton and argparsing for a new utilityOndrej Oprala2014-05-151-0/+10
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* cytune: remove from util-linuxSami Kerola2014-05-121-7/+0Star
| | | | | | | | | | | Assumption is there are not many who need this tool. Whom ever they might be the recommendation is to use the command from old util-linux release. Second reason to removal is difficulty to test hardware specific command when none of the active project members does not seem to have such. Basically the command has reached dead end what comes to maintainability of it. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lib/timeutils: remove get_boot_time from libcommonKarel Zak2014-05-061-1/+1
| | | | | | | | clock_gettime() needs -lrt, so let's keep this stuff outside libcommon.la Reported-by: Ruediger Meier <sweet_f_a@gmx.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: consolidate systemd supportKarel Zak2014-04-091-1/+1
| | | | | | | | | | | | | | | * systemd (since v209) uses only one library (when compiled without --enable-compat-libs) * all systemd build-sys stuff is merged into HAVE_SYSTEMD (automake) and HAVE_LIBSYSTEMD (C macro) now * all is controlled by --with-systemd, default is to automatically check for systemd libs * no more --enable-socket-activation and --enable-journald Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix fstrim systemd stuffKarel Zak2014-04-081-4/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: add systemd unitsThomas Bächler2014-04-071-0/+6
| | | | | | | | This adds a timer and a service for systemd that runs fstrim -a once a day. The Persistent=true option used will only work on systemd 212 or newer.
* wdctl: use libsmartcolsOndrej Oprala2014-04-031-1/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* swapon: use libsmartcolsOndrej Oprala2014-04-031-2/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* prlimit: use libsmartcolsOndrej Oprala2014-04-031-1/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* lscpu: use libsmartcolsOndrej Oprala2014-04-031-1/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* losetup: use libsmartcolsOndrej Oprala2014-04-031-2/+3
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* unshare: include libmount.h to provide missing MS_* definesRuediger Meier2014-03-171-0/+1
| | | | | | | Since 6728ca10 we are using MS_PRIVATE and MS_REC which are not defined in some systems's sys/mount.h. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: fstrim depends on libmountKarel Zak2014-01-171-6/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: add --all to discard all filesystemKarel Zak2013-12-101-1/+2
| | | | | | | | | | | | * read /proc/self/mountinfo to get filesystems * ignore net and pseudo filesystems * ignore unaccessible filesystems (over mounted by another FS) * read disk sysfs queue/discard_granularity to detect is discard support * call FITRIM ioctl * silently ignore EOPNOTSUPP (for example LUKS without discard) and ENOTTY (for example vfat) errors Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: make time stamps to be printed consistentlySami Kerola2013-07-011-1/+1
| | | | | | | | | | | | | | | | | | | Earlier uptime determination, which was done with sysinfo(2), had one second resolution, which made time stamps to be rounded unstable way depending on when a dmesg command was executed. In practical terms; the command below was supposed not to differ but it did. $ diff -q <(dmesg --ctime) <(sleep 0.5 ; dmesg --ctime) [kzak@redhat.com: - add -lrt to Makemodule.am, - fallback to sysinfo() based boot time - use #ifdef] CC: Kay Sievers <kay@vrfy.org> References: https://lkml.org/lkml/2013/6/30/37 Buglink: https://github.com/karelzak/util-linux/issues/24 Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: detect more hypervisor vendorsOndrej Oprala2013-05-201-1/+4
| | | | | | | | [kzak@redhat.com: - cleanup coding style, - use path_exist()] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-cytuneKarel Zak2013-04-101-5/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't use nested BUILD_*Karel Zak2013-03-211-6/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* arch: remove the command, deprecated since 2.13, use coreutils versionKarel Zak2013-03-141-6/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare,nsenter: spawn shell by defaultZbigniew Jędrzejewski-Szmek2013-02-141-0/+1
| | | | | | | | | | | | | 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>
* setpriv: run a program with different Linux privilege settingsAndy Lutomirski2013-02-051-0/+7
| | | | | | | | | | | | 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>
* nsenter: new command (light wrapper around setns)Eric W. Biederman2013-01-171-0/+7
| | | | | | | | | | | 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>
* Revert "unshare: support the switching of namespaces"Karel Zak2013-01-171-1/+0Star
| | | | | | | The functionality will be replaced with nsenter from Eric W. Biederman. This reverts commit 4bbe8099390d528018890efa914e268de3c4b44b.
* unshare: support the switching of namespacesNeil Horman2013-01-071-0/+1
| | | | | | | | | | | | | | | | | | | | | In addition to the unshare syscall, there exists the setns syscall, which allows processes to migrate to the namepsaces of other processes. Add this functionality into the unshare command, as they operate in a fairly simmilar fashion. Note: There was discussion of adding a path based namespace argument to unshare in the origional discussion thread, but I opted to leave that out as it didn't seem to fit in nicely with the current argument pattern. I figure we can always add that in later if we need to [kzak@redhat.com: - fix optional arguments - do not call unshare if no flag specified - use O_CLOEXEC - codding style cleanup] Signed-off-by: Neil Horman <nhorman@tuxdriver.com> CC: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tunelp: deprecation: remove command from default buildSami Kerola2012-12-191-0/+2
| | | | | | It is difficult to think think tunelp command being in use a lot. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* ipcs: determine ipc limits from /procSami Kerola2012-11-231-1/+5
| | | | | | | | | | | | Some of the limit values are not dynamic. Like in kernel these values are #defined. [kzak@redhat.com: - use better names for functions, - add ipcutils.{c,h} - read also shmmax from /proc] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkdiscard: add new commandLukas Czerner2012-09-281-0/+5
| | | | | | | | | | | | | blkdiscard is used to discard device sectors. This is useful for solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim this command is used directly on the block device. blkkdiscard uses BLKDISCARD ioctl or BLKSECDISCARD ioctl for the secure discard. All data in the discarded region on the device will be lost! Signed-off-by: Lukas Czerner <lczerner@redhat.com>
* Revert "blkdiscard: new command"Karel Zak2012-09-281-9/+1Star
| | | | | | | This was only attempt as alternative implementation, unfortunately pushed publicly... sorry. This reverts commit c84ed54cefdcaa07f3d1f40a65434c9d4277da08.
* blkdiscard: new commandKarel Zak2012-09-271-1/+9
| | | | | | | | | | | Add to fstrim(8) code to support new discard BLKDISCARD and BLKSECDISCARD ioctls for block devices. The new command is only symlink to fstrim(8) as the both utils share some code and the basic ideas. Based on patch from Lukas Czerner <lczerner@redhat.com>. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add sys-utils/umount.8 manual pageSami Kerola2012-08-061-1/+1
| | | | | | | | | | The man page is almost exact copy of mount-deprecated/umount.8. This version mentions long options, and has the options in same order as they are mentioned in usage() output. Rest of the minor changes make groff slightly nicer e.g. use .PP instead of empty line for paragraph marker. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-21/+21
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-74/+40Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move hwclock to sys-utils/Karel Zak2012-06-261-0/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert sys-utils/ to moduleKarel Zak2012-06-261-0/+316
Signed-off-by: Karel Zak <kzak@redhat.com>