]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Tue, 6 Jun 2023 08:45:17 +0000 (10:45 +0200)]
Merge branch 'lsfd--timerfd' of https://github.com/masatake/util-linux
* 'lsfd--timerfd' of https://github.com/masatake/util-linux:
tests: (lsfd/filter) add a case for comparing floating point numbers
tests: (lsfd) add a case for testing timerfd related columns
tests: add ts_skip_capability
tests: (mkfds) add a factory to make a timerfd
lsfd.1.adoc: write about timerfd
lsfd: print the detail of the timer associated with a timerfd
lsfd: (filter) accept floating point numbers in expressions
lsfd: (filter) support floating point number used in columns
lsfd: (filter) reduce duplicated code in macro definitions
lsfd: (filter) improve error message
lsfd.1.adoc: revise type names for columns
lsfd.1.adoc: fix typos
lsfd: adjust coding style
lsfd: fix a sentence in comment
Karel Zak [Mon, 5 Jun 2023 09:46:11 +0000 (11:46 +0200)]
Merge branch 'fix-jfs' of https://github.com/mbroz/util-linux
* 'fix-jfs' of https://github.com/mbroz/util-linux:
libblkid: jfs - avoid undefined shift
Karel Zak [Mon, 5 Jun 2023 09:45:37 +0000 (11:45 +0200)]
Merge branch 'libblkid/bcache-csum' of https://github.com/t-8ch/util-linux
* 'libblkid/bcache-csum' of https://github.com/t-8ch/util-linux:
libblkid: (bcache) report block size
libblkid: (bcache) report version
libblkid: (bcache) report label
libblkid: (bcache) also calculate checksum over journal buckets
libblkid: (bcache) extend superblock definition
Karel Zak [Mon, 5 Jun 2023 09:44:30 +0000 (11:44 +0200)]
Merge branch 'fixes' of https://github.com/t-8ch/util-linux
* 'fixes' of https://github.com/t-8ch/util-linux:
libmount (python) : simplify struct initialization
lsfd-filter: constify filter logic
misc: constify some fields
Milan Broz [Sun, 4 Jun 2023 17:15:55 +0000 (19:15 +0200)]
libblkid: jfs - avoid undefined shift
Fix previous commit
04a0717b0b0faa1a8078dc6fad05183b8bada395
to avoid undefined shift if value is exactly 32.
libblkid/src/superblocks/jfs.c:46:39: runtime error:
shift exponent 32 is too large for 32-bit type 'unsigned int'
Reproducer found with OSS-Fuzz (issue 59284) running over
cryptsetup project (blkid is used in header init).
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Masatake YAMATO [Sun, 4 Jun 2023 03:00:39 +0000 (12:00 +0900)]
tests: (lsfd/filter) add a case for comparing floating point numbers
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 04:11:00 +0000 (13:11 +0900)]
tests: (lsfd) add a case for testing timerfd related columns
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sun, 4 Jun 2023 07:55:00 +0000 (16:55 +0900)]
tests: add ts_skip_capability
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Fri, 2 Jun 2023 23:40:18 +0000 (08:40 +0900)]
tests: (mkfds) add a factory to make a timerfd
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 00:36:57 +0000 (09:36 +0900)]
lsfd.1.adoc: write about timerfd
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Fri, 2 Jun 2023 23:42:27 +0000 (08:42 +0900)]
lsfd: print the detail of the timer associated with a timerfd
An example output:
# ./lsfd -p 1 -Q '(TYPE == "timerfd")' -oCOMMAND,PID,ASSOC,TYPE,INODE,NAME
COMMAND PID ASSOC TYPE INODE NAME
systemd 1 22 timerfd 1060 clockid=monotonic remaining=4625.
661834645
systemd 1 25 timerfd 1060 clockid=realtime remaining=398.
164618943
systemd 1 112 timerfd 1060 clockid=realtime remaining=
7537606384 .
202715161
Added three new columns, TIMERFD.{CLOCKID,TIMERFD.REMAINING,INTERVAL}.
The filter engine works well with them.
An example listing timerfd files expiring within 1.2 seconds.
# ./lsfd -Q '(TIMERFD.REMAINING > 0.0) && (TIMERFD.REMAINING < 1.2)'
COMMAND PID USER ASSOC MODE TYPE SOURCE MNTID INODE NAME
Xorg 17069 jet 26 rw- timerfd anon_inodefs 15 1060 clockid=monotonic remaining=0.
061075544
systemd-oomd
2382701 systemd-oom 8 rw- timerfd anon_inodefs 15 1060 clockid=monotonic remaining=0.
178126915
Using SCOLS_JSON_NUMBER as the data type for TIMERFD.REMAINING and
TIMERFD.INTERVAL columns is suggested by Thomas Weißschuh
<thomas@t-8ch.de>.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 21:18:45 +0000 (06:18 +0900)]
lsfd: (filter) accept floating point numbers in expressions
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 09:42:40 +0000 (18:42 +0900)]
lsfd: (filter) support floating point number used in columns
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 09:34:53 +0000 (18:34 +0900)]
lsfd: (filter) reduce duplicated code in macro definitions
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 20:44:38 +0000 (05:44 +0900)]
lsfd: (filter) improve error message
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 22:39:32 +0000 (07:39 +0900)]
lsfd.1.adoc: revise type names for columns
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Fri, 2 Jun 2023 23:27:05 +0000 (08:27 +0900)]
lsfd.1.adoc: fix typos
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Mon, 29 May 2023 12:59:04 +0000 (21:59 +0900)]
lsfd: adjust coding style
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 3 Jun 2023 18:42:38 +0000 (03:42 +0900)]
lsfd: fix a sentence in comment
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Thomas Weißschuh [Sat, 3 Jun 2023 11:49:18 +0000 (13:49 +0200)]
libblkid: (bcache) report block size
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 3 Jun 2023 09:15:13 +0000 (11:15 +0200)]
libblkid: (bcache) report version
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 3 Jun 2023 08:50:26 +0000 (10:50 +0200)]
libblkid: (bcache) report label
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 3 Jun 2023 11:13:52 +0000 (13:13 +0200)]
libblkid: (bcache) also calculate checksum over journal buckets
Fixes #2291
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 3 Jun 2023 11:13:37 +0000 (13:13 +0200)]
libblkid: (bcache) extend superblock definition
We will need it for the correct checksum calculation.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Mon, 29 May 2023 07:23:37 +0000 (09:23 +0200)]
libmount (python) : simplify struct initialization
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 3 Jun 2023 08:22:46 +0000 (10:22 +0200)]
lsfd-filter: constify filter logic
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Mon, 29 May 2023 07:23:53 +0000 (09:23 +0200)]
misc: constify some fields
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 2 Jun 2023 20:53:40 +0000 (22:53 +0200)]
tests: fix subtests containing spaces in their name
Previously these tests would silently fail to compare
$TS_OUTPUT / $TS_ERRLOG.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 06:09:39 +0000 (08:09 +0200)]
ci: build on old distro
This should help to catch build breaks
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 08:26:50 +0000 (10:26 +0200)]
ci: mark source directory as safe
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 08:15:11 +0000 (10:15 +0200)]
ci: prevent prompts during installation
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 15:31:01 +0000 (17:31 +0200)]
tests: skip broken tests on docker
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 15:27:38 +0000 (17:27 +0200)]
tests: add ts_skip_docker
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 15:12:12 +0000 (17:12 +0200)]
tools: (asciidoctor) explicitly require extensions module
This is needed for older versions of asciidoctor.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 14:56:31 +0000 (16:56 +0200)]
build-sys: only pass --failure-level if supported
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 14:11:09 +0000 (16:11 +0200)]
build-sys: fix typo in waitpid check
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 15:25:22 +0000 (17:25 +0200)]
lsfd: (tests) fix typo
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 10:54:57 +0000 (12:54 +0200)]
blockdev: properly check for BLKGETZONESZ ioctl
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 31 May 2023 10:47:03 +0000 (12:47 +0200)]
blkzone: don't take address of struct blk_zone
Older versions of GCC do not know the warning so they warn about the
unknown ignored warning.
As struct blk_zone is only 64 bytes anyway just copy it.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Karel Zak [Wed, 31 May 2023 09:03:07 +0000 (11:03 +0200)]
Merge branch 'pr/termtype'
Karel Zak [Wed, 31 May 2023 07:35:05 +0000 (09:35 +0200)]
Merge branch 'patch-1' of https://github.com/theHenMan/util-linux
* 'patch-1' of https://github.com/theHenMan/util-linux:
Update fsck.8.adoc
Karel Zak [Wed, 31 May 2023 07:30:31 +0000 (09:30 +0200)]
Merge branch 'enosys/compat' of https://github.com/t-8ch/util-linux
* 'enosys/compat' of https://github.com/t-8ch/util-linux:
test_enosys: fix build on old kernels
Karel Zak [Wed, 31 May 2023 07:28:33 +0000 (09:28 +0200)]
Merge branch 'patch-1' of https://github.com/nt8r/util-linux
* 'patch-1' of https://github.com/nt8r/util-linux:
dmesg: make kmsg read() buffer big enough for kernel
Karel Zak [Wed, 31 May 2023 07:21:11 +0000 (09:21 +0200)]
Merge branch 'patch-2' of https://github.com/ThomasKaiser/util-linux
* 'patch-2' of https://github.com/ThomasKaiser/util-linux:
Fix Blizzard-M2-Max
Add recent Apple ARM cores
Karel Zak [Wed, 31 May 2023 07:18:06 +0000 (09:18 +0200)]
ttyutils: improve get_terminal_default_type() code
Signed-off-by: Karel Zak <kzak@redhat.com>
Hennie Botha [Wed, 31 May 2023 06:45:25 +0000 (08:45 +0200)]
Update fsck.8.adoc
Typo
Thomas Weißschuh [Tue, 30 May 2023 18:01:49 +0000 (20:01 +0200)]
test_enosys: fix build on old kernels
Fixes #2277
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
anteater [Mon, 29 May 2023 20:59:11 +0000 (20:59 +0000)]
dmesg: make kmsg read() buffer big enough for kernel
otherwise, if the kernel log has an item longer than 1024B, our read() gives EINVAL and we stop reading kmsg
Karel Zak [Mon, 29 May 2023 13:11:48 +0000 (15:11 +0200)]
sulogin: use get_terminal_default_type()
Let's reuse the way how agetty initializes $TERM.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 May 2023 13:11:13 +0000 (15:11 +0200)]
agetty: use get_terminal_default_type()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 May 2023 13:10:24 +0000 (15:10 +0200)]
lib/ttyutils: add get_terminal_default_type()
Based on code from agetty.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 May 2023 12:56:52 +0000 (14:56 +0200)]
Merge branch 'next'
ThomasKaiser [Mon, 29 May 2023 12:47:50 +0000 (14:47 +0200)]
Fix Blizzard-M2-Max
ThomasKaiser [Mon, 29 May 2023 12:42:18 +0000 (14:42 +0200)]
Add recent Apple ARM cores
Karel Zak [Mon, 29 May 2023 09:29:19 +0000 (11:29 +0200)]
Merge branch 'mount/ntfs-segfault' of https://github.com/t-8ch/util-linux
* 'mount/ntfs-segfault' of https://github.com/t-8ch/util-linux:
mount: (tests) test mount helper with multiple filesystems
libmount: (tests) split helper tests
Masatake YAMATO [Sun, 28 May 2023 03:28:13 +0000 (12:28 +0900)]
tests: (lsfd) add a case for testing EVENTPOLL.TFDS column
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 27 May 2023 18:20:37 +0000 (03:20 +0900)]
tests: (mkfds) add a factory to make an eventpoll fd
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 27 May 2023 17:49:00 +0000 (02:49 +0900)]
lsfd: print file descriptors targeted by eventpoll files
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sun, 28 May 2023 03:34:21 +0000 (12:34 +0900)]
add the "x" wrapper for reallocarray(3)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Thomas Weißschuh [Thu, 25 May 2023 05:22:34 +0000 (07:22 +0200)]
mount: (tests) test mount helper with multiple filesystems
See #2267
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 25 May 2023 05:19:03 +0000 (07:19 +0200)]
libmount: (tests) split helper tests
This splits the test introduced in
commit
06e05eb0f785 ("libmount: don't pass option "defaults" to helper")
into its own subtest.
We will have more subtests.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Karel Zak [Thu, 25 May 2023 09:48:24 +0000 (11:48 +0200)]
libmount: don't call hooks after mount.<type> helper
In case more filesystems are specified (or when libmount follows
/{etc,proc}/filesystems) then the library may try to use and
initialize the new API because for some filesystems, we need
exec(/sbin/mount.<type>) and for another fsopen().
The hooks that use the API have to smart and detect that the mount
operation was done in external /sbin/mount.<type> helper. And in this
case, the new API file descriptors must be ignored.
The exception is propagation flags, mount(8) can set the flags after
exec(/sbin/mount.<type>), for example, "mount -t ntfs --make-private".
Fixes: https://github.com/util-linux/util-linux/issues/2267
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 May 2023 09:41:59 +0000 (11:41 +0200)]
Merge branch 'enosys/arch-check' of https://github.com/t-8ch/util-linux
* 'enosys/arch-check' of https://github.com/t-8ch/util-linux:
enosys: add support for loongarch
enosys: only build if AUDIT_ARCH_NATIVE is defined
meson: require 0.57
enosys: split audit arch detection into dedicated header
enosys: add support for sparc
Karel Zak [Wed, 24 May 2023 09:41:42 +0000 (11:41 +0200)]
Merge branch 'lsfd--sysvipc-shmem' of https://github.com/masatake/util-linux
* 'lsfd--sysvipc-shmem' of https://github.com/masatake/util-linux:
tests: (lsfd) add a case for testing SOURCE column for SysV shmem mappings
tests: (mkfds) add a factory to make SysV shmem
lsfd: add tmpfs as source of sysvipc to the the nodev_table
lsfd: initialize pagesize in an earlier stage
lsfd: add "nsfs" to the nodev_table to fill SOURCE column for nsfs files
lsfd: add a helper function for adding a nodev to the nodev_table
lsfd: add a whitespace
lsfd: write more about nsfs in comment
Masatake YAMATO [Wed, 12 Apr 2023 00:17:02 +0000 (09:17 +0900)]
tests: (lsfd) add a case for testing SOURCE column for SysV shmem mappings
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Wed, 12 Apr 2023 00:14:49 +0000 (09:14 +0900)]
tests: (mkfds) add a factory to make SysV shmem
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Tue, 21 Mar 2023 16:15:37 +0000 (01:15 +0900)]
lsfd: add tmpfs as source of sysvipc to the the nodev_table
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Tue, 21 Mar 2023 16:03:22 +0000 (01:03 +0900)]
lsfd: initialize pagesize in an earlier stage
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Tue, 21 Mar 2023 16:22:18 +0000 (01:22 +0900)]
lsfd: add "nsfs" to the nodev_table to fill SOURCE column for nsfs files
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Mon, 20 Mar 2023 17:19:11 +0000 (02:19 +0900)]
lsfd: add a helper function for adding a nodev to the nodev_table
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Tue, 21 Mar 2023 16:09:26 +0000 (01:09 +0900)]
lsfd: add a whitespace
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Tue, 23 May 2023 15:49:24 +0000 (00:49 +0900)]
lsfd: write more about nsfs in comment
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Thomas Weißschuh [Tue, 23 May 2023 14:34:47 +0000 (16:34 +0200)]
enosys: add support for loongarch
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Mon, 22 May 2023 15:58:17 +0000 (17:58 +0200)]
enosys: only build if AUDIT_ARCH_NATIVE is defined
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Tue, 23 May 2023 14:32:23 +0000 (16:32 +0200)]
meson: require 0.57
It is needed for fs.read()
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Mon, 22 May 2023 15:25:15 +0000 (17:25 +0200)]
enosys: split audit arch detection into dedicated header
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Mon, 22 May 2023 15:21:26 +0000 (17:21 +0200)]
enosys: add support for sparc
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Tue, 23 May 2023 12:27:25 +0000 (14:27 +0200)]
lsfd: (tests) don't run mqueue test on byteorder mismatch
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Mon, 22 May 2023 16:24:47 +0000 (18:24 +0200)]
waitpid: only build when pidfd_open is available
Fixes #2256
[kzak@redhat.com: - fix UL_BUILD_INIT() use]
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 May 2023 10:18:00 +0000 (12:18 +0200)]
Merge branch 'meson' of https://github.com/eworm-de/util-linux
* 'meson' of https://github.com/eworm-de/util-linux:
meson: install symlink for vigr man page
meson: include bash-completion for write
meson: include bash-completion for newgrp
Karel Zak [Tue, 23 May 2023 10:17:18 +0000 (12:17 +0200)]
Merge branch 'lsfd--mqueue' of https://github.com/masatake/util-linux
* 'lsfd--mqueue' of https://github.com/masatake/util-linux:
tests: (lsfd) add cases for POSIX Mqueue
tests: (mkfds) add mqueue factory
lsfd: fill ENDPOINTS column of POSIX Mqueue
lsfd: add a new type "mqueue", a type for POSIX Mqueue
Karel Zak [Tue, 23 May 2023 10:16:31 +0000 (12:16 +0200)]
Merge branch 'agetty/fileutils' of https://github.com/t-8ch/util-linux
* 'agetty/fileutils' of https://github.com/t-8ch/util-linux:
agetty: include fileutils.h
Christian Hesse [Mon, 22 May 2023 14:11:18 +0000 (16:11 +0200)]
meson: install symlink for vigr man page
Christian Hesse [Mon, 22 May 2023 13:57:35 +0000 (15:57 +0200)]
meson: include bash-completion for write
Christian Hesse [Mon, 22 May 2023 13:56:28 +0000 (15:56 +0200)]
meson: include bash-completion for newgrp
Karel Zak [Tue, 23 May 2023 10:13:02 +0000 (12:13 +0200)]
libmount: cleanup enosys returns from mount hoop
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 May 2023 10:06:36 +0000 (12:06 +0200)]
Merge branch 'libmount/mount_setattr' of https://github.com/t-8ch/util-linux
* 'libmount/mount_setattr' of https://github.com/t-8ch/util-linux:
libmount: check for availability of mount_setattr
Karel Zak [Tue, 23 May 2023 09:34:19 +0000 (11:34 +0200)]
fstab: add hint about systemd reload
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 May 2023 08:47:18 +0000 (10:47 +0200)]
mount: improve code readability
Static analyzers (e.g., Coverity) have a hard time understanding why
'optarg' is tested for NULL, and later in another place, code assumes
that it's non-NULL. For idmapping, the optarg is required.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 May 2023 08:43:59 +0000 (10:43 +0200)]
login: fix memory leak [coverity scan]
Let's use ul_path_read_buffer() to avoid memory allocation.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 May 2023 15:26:55 +0000 (17:26 +0200)]
libmount: don't call mount.<type> helper with usernames
This is v2.39 regression. The "user" mount option is internally
converted to "user=<name>", but this should not be exported to
the mount helpers.
The mount helper accepts the <name> only if specified in mount options
(cifs uses user=). The real username as generated by libmount is not
relevant in this case.
Signed-off-by: Karel Zak <kzak@redhat.com>
Thomas Weißschuh [Mon, 22 May 2023 15:11:17 +0000 (17:11 +0200)]
agetty: include fileutils.h
It is needed to access xreaddir()
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Masatake YAMATO [Sat, 11 Mar 2023 15:53:57 +0000 (00:53 +0900)]
tests: (lsfd) add cases for POSIX Mqueue
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Sat, 11 Mar 2023 15:24:02 +0000 (00:24 +0900)]
tests: (mkfds) add mqueue factory
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Masatake YAMATO [Mon, 6 Mar 2023 16:32:01 +0000 (01:32 +0900)]
lsfd: fill ENDPOINTS column of POSIX Mqueue
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Karel Zak [Mon, 22 May 2023 13:40:38 +0000 (15:40 +0200)]
tests: add optlist tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Masatake YAMATO [Sun, 5 Mar 2023 19:05:03 +0000 (04:05 +0900)]
lsfd: add a new type "mqueue", a type for POSIX Mqueue
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Karel Zak [Mon, 22 May 2023 13:00:25 +0000 (15:00 +0200)]
libmount: fix options prepend/insert and merging
* the order of the new options should not be changed
(for example prepend "a,b,c" to list with "d" has to generate "a,b,c,d", not "c,b,a,d")
* make sure that options map is defined when merging options
Fixes: https://github.com/util-linux/util-linux/issues/2238
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 22 May 2023 11:42:48 +0000 (13:42 +0200)]
Merge branch 'agetty-creds' of https://github.com/DaanDeMeyer/util-linux
* 'agetty-creds' of https://github.com/DaanDeMeyer/util-linux:
Document new systemd credentials support for agetty and login
login: Initialize noauth from login.noauth credential
agetty: Load autologin user from agetty.autologin credential
Karel Zak [Mon, 22 May 2023 11:36:37 +0000 (13:36 +0200)]
Merge branch 'map-users' of https://github.com/arachsys-prs/util-linux
* 'map-users' of https://github.com/arachsys-prs/util-linux:
mount: add --map-users and --map-groups convenience options