| Age | Commit message (Collapse) | Author | Files | Lines |
|
https://github.com/karelzak/util-linux-work
* 'PR/column-input-separator-alias' of https://github.com/karelzak/util-linux-work:
column: add --input-separator as an alias for --separator
|
|
This change adds --input-separator as an alias for the existing
--separator option, providing symmetry with --output-separator.
The new alias is documented in:
- command-line help text
- man page
- bash completion
Fixes: https://github.com/util-linux/util-linux/issues/3889
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
https://github.com/karelzak/util-linux-work
* 'PR/chmem-dynamic-configuration' of https://github.com/karelzak/util-linux-work:
tests: update lsmem outputs
lsmem: use xstrncpy()
lsmem,chmem: add configure/deconfigure bash completion options
lsmem: add doc for dynamic (de)configuration and memmap-on-memory support
chmem: add chmem documentation for dynamic (de)configuration of memory
chmem: add support for dynamic (de)configuration of hotplug memory
lsmem: add support to display dynamic (de)configuration of memory
lsmem: display global memmap on memory parameter
|
|
Add bash completion for configure/deconfigure options in chmem and lsmem.
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
|
|
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
|
|
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
|
|
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
|
|
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
|
|
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Change --remove from '-R, --remove' to a long-only option '--remove'.
This makes it consistent with other administrative options and adds
mutual exclusivity with other major actions like -d, -D, -a, -c, -f,
-j, -l, and -O.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
https://github.com/cgoesche/util-linux-fork
* 'fix/mount_bash_comp' of https://github.com/cgoesche/util-linux-fork:
bash-completion: (mount) add missing options
|
|
https://github.com/cgoesche/util-linux-fork
* 'feat/add_json_opt_lslogins' of https://github.com/cgoesche/util-linux-fork:
bash-completion: (lslogins) add --list-columns option
lslogins: (man) add --list-columns description
lslogins: add -H and --list-columns option; declutter --help output
lslogins: (man) add --json information
bash-completion: (lslogins) add --json completion
tests: (lslogins) test --json output mode
lslogins: add JSON output format mode
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
The option --buffer-size already infers that its the optional argument
is a size value. In addition to that, when the option is completed the
user will have to delete the word 'size' from the command line and type
the desired value, which is not an ideal user experience.
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
https://github.com/cgoesche/util-linux-fork
* 'fix/rename_annotation_opt_to_annotate' of https://github.com/cgoesche/util-linux-fork:
man-common: rename annotation.adoc to annotate.adoc
swapon: use ANNOTATE_OPTION as enum name for --annotate
swapon: rename the new --annotation option to --annotate
swapon: (usage) make the help text fit within 80 columns again
|
|
The form --annotation gave the impression that after the subsequent
"=" comes the text that each column name should be annotated with.
Furthermore, the other two options with optional arguments (--show
and --discard) are in the imperative, so follow that style and use
--annotate instead.
(In the bargain, this allows aligning the descriptions in the help
text perfectly again.)
Also, improve the description of --annotate in the man page somewhat.
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The bits command was added in commit 6e1301d59 (text-utils: add bits
command) but the bash-completion file was not added to the autotools
Makemodule.am, causing it to be missing from release tarballs.
This resulted in meson build failures when using the tarball with
bash-completion installed, as meson.build references the file but
it doesn't exist in the tarball.
Fixes: https://github.com/util-linux/util-linux/issues/3766
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
https://github.com/cgoesche/util-linux-fork
* 'feat/lscpu_add_microcode_column' of https://github.com/cgoesche/util-linux-fork:
bash-completion: add MICROCODE to $OPTS_ALL
lscpu: add MICROCODE output column
|
|
https://github.com/cgoesche/util-linux-fork
* 'fix/fix_lsns_list_columns_opt' of https://github.com/cgoesche/util-linux-fork:
bash-completion: (lsns) add -H/--list-columns options
lsns: fix --list-columns option
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
If the user defined path can not be found in the mount table
fallback to simple filename expansion.
Addresses: #1333
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Traditionally ldattach have hard coded MTU of 127 bytes
which differs from defaults proposed in 3GPP TS 27.010
which is 31 bytes when basic framing is used.
Add '-m <value>' parameter that is only GSM0710 specific
and already handled by the kernel. Use same value for both
MTU and MRU.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This implements terminal-colors.d(5) behavior.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The function "_enosys_module" referenced by the completion setting on
the last line of "bash-completion/enosys" is not defined in the
current master. As reported in Ref. [1], this causes the following
error on an attempt at argument completion for the "enosys" command:
bash: _enosys_module: command not found
[1] https://www.reddit.com/r/Fedora/comments/1llmu0w/comment/n00y98k/
Also, the function "_waitpid_module" defined in
"bash-completion/enosys" overwrites another completion function of the
same name defined in "bash-completion/waitpid". This patch renames
the function in "bash-completion/enosys" to the correct one,
"_enosys_module".
|
|
Addresses: https://github.com/util-linux/util-linux/issues/3469
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
|
|
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
|
|
https://github.com/akinomyoga/util-linux
* 'bash-completion-command-lsblk' of https://github.com/akinomyoga/util-linux:
bash-completion: use "command ls" instead of "\ls"
bash-completion: prefix "command" to other external commands
bash-completion: prefer "builtin cd" to "cd" to avoid aliases
bash-completion: prefer "command lsblk" to "lsblk" to avoid aliases
|
|
The backslash quoting can be used to bypass aliases, but it cannot be
used to bypass shell functions for interactive uses defined by the
users. We can use "command ls" instead to bypass both aliases and
shell functions.
|
|
|
|
The command "cd" is also often aliased, so we should use "builtin cd"
to make sure to use the built-in version of "cd".
|
|
The user may define an alias lsblk to specify the default formatting,
such as -T, which would conflict with lsblk -r used in the Bash
completion settings. In the Bash completion settings, to prevent the
calls of lsblk -r ... from being replaced with lsblk -T -r ... and
failing, lsblk should be called using command lsblk.
|
|
When cachestat() is not available, mmap() and fincore() are used to get
cache statistics.
This fallback returns less data than cachestat, and potentially hides
read errors by reporting that the file is all mapped in memory:
$ fincore /usr/bin/java
fincore: failed to do cachestat: /usr/bin/java: Operation not permitted
RES PAGES SIZE FILE
208K 13 198,1K /usr/bin/java
$ echo $?
0
$ sudo fincore /usr/bin/java
RES PAGES SIZE FILE
0B 0 198,1K /usr/bin/java
Add a --cachestat argument which forces cachestat usage and fails if
it's not available:
$ fincore -C /usr/bin/java
fincore: failed to do cachestat: /usr/bin/java: Operation not permitted
$ echo $?
1
Also, on huge files the fallback is very slow and memory consuming,
so this flag can be user to avoid doing it by mistake.
|
|
Add a --recursive flag to fincore which allows to recursively scan
directories.
Co-authored-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Matteo Croce <teknoraver@meta.com>
|
|
chrt's -e/--ext corresponds to the SCHED_EXT scheduling policy,
which, for the purposes of bash completion, behaves just like
--other, --idle, and --batch
Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
|
|
Most other util-linux tools that accept the option argument "auto"
additionally accept "always" and "never", not "enable" / "disable".
So, make option --cpu-stat accept those standard words (besides the
deviant ones), and adjust the documentation to use the standard words.
Furthermore, make --cpu-stat accept also "on", "off", "yes", "no",
"1", and "0", to allow the user to use shorter words. The per-CPU
stats can now be suppressed with a succinct: `irqtop -c0`.
CC: Zhenwei Pi <pizhenwei@bytedance.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
|
|
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
This is helpful for analyzng data saved from other system.
Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Zhenwei Pi <pizhenwei@bytedance.com>
Cc: Sami Kerola <kerolasa@iki.fi>
Cc: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Zhenwei Pi <pizhenwei@bytedance.com>
Cc: Sami Kerola <kerolasa@iki.fi>
Cc: Karel Zak <kzak@redhat.com>
|
|
Add support for setting the number of iterations. This is useful in
non-interactive mode.
Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Zhenwei Pi <pizhenwei@bytedance.com>
Cc: Sami Kerola <kerolasa@iki.fi>
Cc: Karel Zak <kzak@redhat.com>
|
|
Add batch mode support, which could be useful for sending output to
other programs or to a file.
Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Zhenwei Pi <pizhenwei@bytedance.com>
Cc: Sami Kerola <kerolasa@iki.fi>
Cc: Karel Zak <kzak@redhat.com>
|
|
New options, --start and --length are for specifying the byte-range.
The options assume used with --fcntl option.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
* 'ipc' of https://github.com/PrasannaPaithankar/util-linux:
Defined macros for POSIX IPC compilation and removed path buffer.
Fix CodeQL warning
sys-utils: warns if mqueue fs is not mounted
bash completions for IPC tools
sys-utils: fixed build system for POSIX IPC tools
rectified long formatting error
configured for meson build system
added POSIX IPC paathnames; modified sys-utils/Makemodule.am
added POSIX IPC support to lsipc, ipcrm, ipcmk
|
|
- Add a check to see if mqueue fs is mounted before using it, and warn
the user if it is not mounted.
- bash completion for ipcrm is fixed to make it independent of awk.
Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
|
|
Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
|
|
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
https://github.com/karelzak/util-linux-work
* 'PR/libsmartcols-hyperlinks' of https://github.com/karelzak/util-linux-work:
lsblk: add --hyperlink command line option
findmnt: add --hyperlink command line option
include: add functions to implement --hyperlink
libsmartcols: add support for terminal hyperlinks
include/ttyutils: add terminal hyperlink ESC sequences
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
In certain situations, data alignment is not desired.
Addresses: https://github.com/util-linux/util-linux/pull/3255
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
|
|
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
|
|
* 'irq-stuff' of https://github.com/rjarry/util-linux:
lsirq: add option to limit cpus
lsirq,irqtop: add threshold option
|
|
For consistency with irqtop, add a --cpu-list lsirq option to specify
a list of CPUs for which to display interrupt counters.
get_scols_table() already supports a cpu_set_t argument. Simply parse
the argument and pass it down.
Signed-off-by: Robin Jarry <robin@jarry.cc>
|
|
Add a new option to filter out IRQs whose counters are below the
specified value. The argument supports plain integers and human readable
values (e.g. 1.2K).
Signed-off-by: Robin Jarry <robin@jarry.cc>
|
|
https://github.com/karelzak/util-linux-work
* 'PR/hardlink-nftw-imrovements' of https://github.com/karelzak/util-linux-work:
hardlink: implement --mount
hardlink: add missing verbose messages and unify them
hardlink: implement --exclude-subtree
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Let's export another feature of nftw() to the hardlink command line.
In this case, we will force the file-tree-walk to stay within the same
filesystem.
Addresses: https://github.com/util-linux/util-linux/discussions/3244
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Now, it is possible to exclude files by their names, but it does not
allow for ignoring entire subtrees of the scanned hierarchy. The new
option only applies to directory names and forces the file-tree-walk
to skip the directory and all of its subdirectories.
This is based on FTW_SKIP_SUBTREE, which was originally only available
in glibc (since 2004). Therefore, the code is #ifdef-ed to make it
portable to other libc versions.
Addresses: https://github.com/util-linux/util-linux/discussions/3244
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Add a new text utility to convert bit masks in various formats.
This can be handy to avoid parsing affinity masks in one's head and/or
to interact with the kernel in a more human friendly way. It is
a rewrite in C of the bits command from my linux-tools python package so
that it can be more widely available.
Here is an example:
~# cat /sys/kernel/debug/tracing/tracing_cpumask
ffffffff,ffffffff,ffffffff,ffffffff
~# bits -l ,$(cat /sys/kernel/debug/tracing/tracing_cpumask)
0-128
~# bits -g 58,59,120,123
9000000,00000000,0c000000,00000000
~# bits -g 58,59,120,123 > /sys/kernel/debug/tracing/tracing_cpumask
~# echo 1 > /sys/kernel/debug/tracing/tracing_on
Add man page and basic tests.
Link: https://git.sr.ht/~rjarry/linux-tools#bits
Signed-off-by: Robin Jarry <robin@jarry.cc>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
* 'PR/sfdisk-discard' of https://github.com/karelzak/util-linux-work:
sfdisk: add --discard-free
include/blkdev: share BLKDISCARD macros
|
|
Why do we need this? It can be difficult for end-users to discard
unpartitioned areas using blkdiscard, as it requires using fdisk to
obtain a list of free areas and then using blkdiscard with the correct
--offset and --length options. It is less risky for end-users to use
(s)fdisk, as they have a better understanding of the disk layout.
Addresses: https://github.com/util-linux/util-linux/issues/2804
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
look(1) opens /usr/share/dict/words as dictionary by default. Doing TAB
completion for look(1) without the dictionary installed will result in
popups like
$ look look: /usr/share/dict/words: No such file or directory
messing up the terminal.
As /usr/share/dict/words is not shipped by quite a few distros nowadays
and it should not be listed as a hard dependency of util-linux, we make
sure the dictionary exists before calling look(1) when doing completion,
avoiding these error messages.
When completing the word without anything specified on the command line,
alphabets and numbers instead of all words are listed as a hint, for
better interacting experience.
Signed-off-by: Yao Zi <ziyao@disroot.org>
|
|
* update columns list
* add --properties-by
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
We accept a `-c` command option or possible second argument which is then
invoked through the user's shell after the group change, as by the `sg`
utility. The default is still running the shell itself.
|
|
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
table mode.
Entries are padded with whitespaces, then <num> spaces are added to separate the columns.
This should fix https://github.com/util-linux/util-linux/issues/1551
|
|
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
|
|
Signed-off-by: Thijs Raymakers <thijs@raymakers.nl>
|
|
* 'uuidv7' of https://github.com/t-8ch/util-linux:
uuidgen: add support for RFC9562 UUIDs
uuidparse: add support for RFC9562 UUIDs
libuuid: add support for RFC9562 UUIDs
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
|
|
Co-authored-by: Phil Auld <pauld@redhat.com>
Signed-off-by: Phil Auld <pauld@redhat.com>
Signed-off-by: Thijs Raymakers <thijs@raymakers.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
* 'lastlog2' of https://github.com/schubi2/util-linux:
lastlog2 - Y2038 safe version of lastlog pam_lastlog2 - PAM module which logs user login with lastlog2
|
|
An example output:
$ ./findmnt -I
SOURCE FSTYPE INO.TOTAL INO.USED INO.AVAIL INO.USE% TARGET
/dev/mapper/fedora_dev64-root ext4 5341184 1135307 4205877 21% /
devtmpfs devtmpfs 32930640 1209 32929431 0% /dev
tmpfs tmpfs 32938620 86 32938534 0% /dev/shm
...
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
pam_lastlog2 - PAM module which logs user login with lastlog2
|
|
Fixes: https://github.com/util-linux/util-linux/issues/2697
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This also avoids cluttering the home directory during test execution.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
An example session:
$ echo A > a
$ echo B > b
$ ./exch a b
$ cat a
B
$ cat b
A
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
landlock [0] is a Linux stackable LSM that can be used by unprivileged
processes to build a sandbox around them.
With support for landlock in setpriv users can easily construct a
sandbox on-the-fly when executing programs.
[0] https://landlock.io/
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|
|
Building util-linux logs a warning on Gentoo:
```
* Problems with installed bash completions were found:
*
* lastb: incorrect name, no completions for 'lastb' command defined.
*
* For more details on installing bash-completions, please see:
* https://wiki.gentoo.org/wiki/Bash/Installing_completion_files
```
A bash-completion file is usually composed of two parts:
- a function that knows how to produce completions
- a specification of which command should be completed
In cases where multiple commands have the same options, e.g. commands
that are symlinked to each other, it is common to symlink the completion
files as well. This shares the first part. But the second part cannot be
shared, it must be implemented twice by specifying two different
commands to be completed.
"lastb" had a symlinked completion, but when the completion system
processes /usr/share/bash-completion/completions/lastb, it would only
define a completion for "last".
Define both completions in one file, so that sourcing it works
regardless of command used.
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
|
|
This program allows running a command in a new process group and
optionally makes the new process group the foreground process group
of the ctty.
This is useful when running programs through wrappers programs (think
bubblewrap, ...) and wanting to make sure that SIGINT is only sent to
the innermost process. This is possible by putting the innermost process
in a new process group and making that process group the foreground process
group of the controlling terminal.
By adding a separate utility to util-linux, we can apply this to any
program even if the program itself doesn't implement this functionality.
|
|
This is mostly for testing purpose or performance tuning. The new
option allows generate multiple UUIDs using the enhanced capability of
the libuuid to cache time-based UUIDs.
$ uuidgen --time --count 3
638b9432-4196-11ee-bb1f-7824af891670
638b94be-4196-11ee-bb1f-7824af891670
638b94fa-4196-11ee-bb1f-7824af891670
Fixes: https://github.com/util-linux/util-linux/issues/2449
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
* 'enosys/ioctl' of https://github.com/t-8ch/util-linux:
enosys: avoid warnings when no aliases are found
enosys: don't validate that numbers are found from headers
enosys: add support for ioctl blocking
enosys: store blocked syscalls in list instead of array
enosys: build BPF dynamically
enosys: list syscall numbers
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
* 'cachestat' of https://github.com/t-8ch/util-linux:
fincore: report data from cachestat()
fincore: refactor output formatting
fincore: add --output-all
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Ioctls are blocked with ENOTTY.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
* 'master' of https://github.com/u2386/util-linux:
nsenter: add option `-c` to join the cgroup of target process
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Usecases:
* Compare current monotonic time to timestamps reported by systemd
* Validate time namespace operations
* Inspect clock resolutions
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
This commit adds support for the -c or --join-cgroup option in nsenter, allowing a new process to join the cgroup of target process.
Example:
Setup the target process:
$ podman run --rm -d docker.io/golang sleep 10000
51a89deb6baf6d
$ podman inspect --format '{{ .State.Pid }}' 51a89deb6baf6d6
216054
Enter the cgroup namespace of target process without option -c:
$ sudo ./nsenter -C -U -t 216054 sh -c "cat /proc/self/cgroup"
0::/../../../../session-899.scope
Enter the cgroup namespace of target process with option -c:
$ sudo ./nsenter -c -C -U -t 216054 sh -c "cat /proc/self/cgroup"
0::/
Reviewed-by: Karel Zak <kzak@redhat.com>
Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: u2386 <hugo.cavan2386@gmail.com>
|
|
https://github.com/igo95862/util-linux
* 'nsenter-add-parent-ns-option' of https://github.com/igo95862/util-linux:
Add `--user-parent` option to nsenter
|
|
When this option is used nsenter will fetch the parent user
namespace from any namespace file descriptors available.
It can be combined with existing `--user` option in which case
the parent user namespace will be fetched from the user namespace
and replace it.
The usecase of this option is when a user namespace that owns
the other type namespaces we want to switch to is not actually
bound to any process. Without using ioctl it is impossible to
acquire namespace file descriptor. For example, bubblewrap
`bwrap` command creates unbinded user namespace when `--dev`
option is used.
|
|
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
|
|
|
|
* 'hexdump-one-byte-hex' of https://github.com/tpwo/util-linux:
hexdump: add new format-strings test case
hexdump: add '--one-byte-hex' format option
|
|
* 'enosys' of https://github.com/t-8ch/util-linux:
enosys: properly block execve syscall
enosys: don't require end-of-options marker
enosys: find syscalls at build time
enosys: remove long jumps from BPF
enosys: add --list
enosys: validate syscall architecture
enosys: add manpage
enosys: add bash completion
enosys: make messages useful for users
enosys: translate messages
enosys: add common arguments
enosys: add test
enosys: fix native arch for s390x
enosys: syscall numbers are "long"
enosys: mark variable static
enosys: remove unneeded inline variable declaration
enosys: improve checks for EXIT_NOTSUPP
enosys: move from tests/helpers/test_enosys.c
c.h: make err_nonsys available
|
|
* 'mkswap/offset' of https://github.com/t-8ch/util-linux:
mkswap: implement --offset
mkswap: (tests) don't overwrite logfiles
mkswap: (tests) validate existence of truncate command
|
|
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Tomasz Wojdat <tpwojdat@gmail.com>
|
|
Addresses #2166
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
|
|
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Making the argument to -S and -G optional in #2092 broke the cli
compatability.
So replace it with an explicit "follow" argument that provides the new
functionality with a compatible interface.
Fixes #2143
|
|
* 'waitpid/count' of https://github.com/t-8ch/util-linux:
waitpid: allow to only wait for a specific number of process exits
|
|
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
|
|
This commit adds support for the -e or --env option in nsenter, allowing a new process to inherit the environment va
If the option is not given, the environment variables will stay the same as in the current namespace.
Example:
Setup the namespace:
$ docker run -d -e PROJECT='util linux' --rm alpine sleep 10000
cb0b69aa7aec
$ docker inspect --format '{{ .State.Pid }}' cb0b69aa7aec
470012
Enter the namespace:
$ nsenter --all -t 470012 --env env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=cb0b69aa7aec
PROJECT=util linux
HOME=/root
Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de>
Reviewed-by: Karel Zak <kzak@redhat.com>
Signed-off-by: u2386 <hugo.cavan2386@gmail.com>
|
|
$ whereis -b -g 'find???'
find???: /usr/bin/findmnt /usr/bin/findscu
Fixes: https://github.com/util-linux/util-linux/issues/2021
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Fixes: https://github.com/util-linux/util-linux/issues/2040
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Let's add --fstab mount option for compatibility with mount(8).
Addresses: https://github.com/util-linux/util-linux/issues/2017
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
|
|
This command implements waiting for the exit of multiple processes.
Especially it allows to wait for process that are not children of the
current process.
In contrast to wait(1P) it does not allow to retrieve the processes exit
codes.
|
|
Fixes #1834
|
|
* add missing stuff to bash-completion
* reorder --help output
* reorder man page
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Fixes: https://github.com/util-linux/util-linux/issues/1928
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Addresses: https://github.com/util-linux/util-linux/pull/1900
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Daniel Peukert <daniel@peukert.cc>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
|