]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Thomas Weißschuh [Fri, 19 May 2023 09:38:18 +0000 (11:38 +0200)]
ci: add OpenWrt SDK based CI jobs
This allows testing some more exotic architectures and libcs.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 19 May 2023 14:29:23 +0000 (16:29 +0200)]
enosys: provide a nicer build message for syscalls.h generation
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 19 May 2023 15:34:00 +0000 (17:34 +0200)]
libsmartcols: (samples): fix format truncation warning
As this is only an example and the needed memory is not much just
hardcode a large enough number.
The previously computed value was wrong anyways.
libsmartcols/samples/continuous.c: In function 'main':
libsmartcols/samples/continuous.c:110:61: error: '%3d' directive output may be truncated writing between 3 and 11 bytes into a region of size between 0 and 7 [-Werror=format-truncation=]
110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff,
| ^~~
libsmartcols/samples/continuous.c:110:25: note: 'snprintf' output between 11 and 333 bytes into a destination of size 12
110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
111 | done ? 100 : (int)(diff / (TIME_PERIOD / 100.0)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libsmartcols/samples/continuous.c:110:61: error: '%3d' directive output may be truncated writing 3 bytes into a region of size between 0 and 7 [-Werror=format-truncation=]
110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff,
| ^~~
libsmartcols/samples/continuous.c:110:25: note: 'snprintf' output between 11 and 325 bytes into a destination of size 12
110 | snprintf(timecell, timecellsz, "%f [%3d%%]", diff,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
111 | done ? 100 : (int)(diff / (TIME_PERIOD / 100.0)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 19 May 2023 14:47:48 +0000 (16:47 +0200)]
test_uuidd: make pthread_t formatting more robust
On musl pthread_t is a pointer. To avoid compiler warnings on 32bit
systems add a cast through intptr_t.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 19 May 2023 14:47:22 +0000 (16:47 +0200)]
mkfs.minix: handle 64bit time on 32bit system
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 17 May 2023 15:00:31 +0000 (17:00 +0200)]
enosys: add support for MIPS, PowerPC and ARC
Co-developed-by: Hauke Mertens <hauke@hauke-m.de>
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 19 May 2023 08:51:25 +0000 (10:51 +0200)]
enosys: include sys/syscall.h
Otherwise there is no guarantee that all syscall numbers detected by
tools/all_syscalls are actually available to enosys.c.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Karel Zak [Thu, 18 May 2023 08:26:02 +0000 (10:26 +0200)]
lib/caputils: fix integer handling issues [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
наб [Sun, 14 May 2023 23:19:58 +0000 (01:19 +0200)]
mesg.1 cleanups/updates
First hunk: grammar.
Second hunk: (a) mentioning BSD ptys and not UNIX98 ones is odd,
(b) mentioning /only/ ptys is odder still.
Third hunk: mesg is found in the UNIX Programmer's Manual;
it takes its modern form in V7
(it's unclear to me why V6 specifically is mentioned,
since it's still default-invert + always-report-"was X").
Karel Zak [Wed, 17 May 2023 11:43:40 +0000 (13:43 +0200)]
Merge branch 'nsenter-keep-caps' of https://github.com/dgibson/util-linux
* 'nsenter-keep-caps' of https://github.com/dgibson/util-linux:
Add --keep-caps option to nsenter, similar to the one in unshare
unshare: Move implementation of --keep-caps option to library function
Karel Zak [Wed, 17 May 2023 11:42:01 +0000 (13:42 +0200)]
Merge branch 'libmount/syscall'
Karel Zak [Wed, 17 May 2023 11:34:34 +0000 (13:34 +0200)]
Merge branch 'enosys' of https://github.com/t-8ch/util-linux
* '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
Karel Zak [Wed, 17 May 2023 11:27:55 +0000 (13:27 +0200)]
Merge branch 'mkswap/offset' of https://github.com/t-8ch/util-linux
* '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
Karel Zak [Wed, 17 May 2023 11:26:34 +0000 (13:26 +0200)]
Merge branch 'blockdev/zonesz' of https://github.com/t-8ch/util-linux
* 'blockdev/zonesz' of https://github.com/t-8ch/util-linux:
blockdev: add support for BLKGETZONESZ
Karel Zak [Wed, 17 May 2023 11:25:25 +0000 (13:25 +0200)]
Merge branch 'mount/tests/fstab' of https://github.com/t-8ch/util-linux
* 'mount/tests/fstab' of https://github.com/t-8ch/util-linux:
mount: (tests) reuse well-known per-test fstab location
tests: (functions.sh) use per-test fstab file
mount: (tests) explicitly use test fstab location
tests: (functions.sh) create variable for test fstab location
Karel Zak [Wed, 17 May 2023 09:58:48 +0000 (11:58 +0200)]
build-sys: release++ (v2.39)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 May 2023 09:57:07 +0000 (11:57 +0200)]
docs: update v2.39-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 May 2023 09:54:01 +0000 (11:54 +0200)]
po-man: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 May 2023 09:53:42 +0000 (11:53 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Yuri Chornoivan [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)]
po-man: update uk.po (from translationproject.org)
Мирослав Николић [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)]
po-man: update sr.po (from translationproject.org)
Frédéric Marchal [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)]
po-man: update fr.po (from translationproject.org)
Mario Blättermann [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)]
po-man: update de.po (from translationproject.org)
Petr Písař [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)]
po-man: update cs.po (from translationproject.org)
Yuri Chornoivan [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)]
po: update uk.po (from translationproject.org)
Jakub Bogusz [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)]
po: update pl.po (from translationproject.org)
Seong-ho Cho [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)]
po: update ko.po (from translationproject.org)
Božidar Putanec [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)]
po: update hr.po (from translationproject.org)
Frédéric Marchal [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)]
po: update fr.po (from translationproject.org)
Mario Blättermann [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)]
po: update de.po (from translationproject.org)
Petr Písař [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)]
po: update cs.po (from translationproject.org)
Thomas Weißschuh [Tue, 16 May 2023 21:18:58 +0000 (23:18 +0200)]
enosys: properly block execve syscall
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sun, 14 May 2023 19:35:58 +0000 (21:35 +0200)]
enosys: don't require end-of-options marker
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 4 May 2023 22:39:40 +0000 (00:39 +0200)]
enosys: find syscalls at build time
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 4 May 2023 22:38:11 +0000 (00:38 +0200)]
enosys: remove long jumps from BPF
BPF encodes the jump distance in a uint8_t. To avoid overflows of this
value reorganize the generated bytecode to work without long jumps.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 28 Apr 2023 11:42:11 +0000 (13:42 +0200)]
enosys: add --list
Thomas Weißschuh [Thu, 27 Apr 2023 21:48:31 +0000 (23:48 +0200)]
enosys: validate syscall architecture
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 4 May 2023 18:31:32 +0000 (20:31 +0200)]
enosys: add manpage
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 4 May 2023 18:15:04 +0000 (20:15 +0200)]
enosys: add bash completion
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 28 Apr 2023 07:57:57 +0000 (09:57 +0200)]
enosys: make messages useful for users
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 28 Apr 2023 07:56:31 +0000 (09:56 +0200)]
enosys: translate messages
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 4 May 2023 18:23:30 +0000 (20:23 +0200)]
enosys: add common arguments
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 27 Apr 2023 22:04:19 +0000 (00:04 +0200)]
enosys: add test
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sun, 7 May 2023 08:59:46 +0000 (10:59 +0200)]
enosys: fix native arch for s390x
s390 also defines __s390__ so we first have to check for __s390x__.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 28 Apr 2023 14:45:58 +0000 (16:45 +0200)]
enosys: syscall numbers are "long"
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 27 Apr 2023 22:04:35 +0000 (00:04 +0200)]
enosys: mark variable static
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 11 May 2023 10:23:01 +0000 (12:23 +0200)]
enosys: remove unneeded inline variable declaration
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 11 May 2023 10:48:33 +0000 (12:48 +0200)]
enosys: improve checks for EXIT_NOTSUPP
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Thu, 27 Apr 2023 21:40:28 +0000 (23:40 +0200)]
enosys: move from tests/helpers/test_enosys.c
Thomas Weißschuh [Thu, 11 May 2023 10:42:27 +0000 (12:42 +0200)]
c.h: make err_nonsys available
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Karel Zak [Mon, 15 May 2023 10:18:17 +0000 (12:18 +0200)]
Merge branch 'chown' of https://github.com/mbeijen/util-linux
* 'chown' of https://github.com/mbeijen/util-linux:
Use non-deprecated chown syntax
Karel Zak [Mon, 15 May 2023 07:41:11 +0000 (09:41 +0200)]
Merge branch 'po-man/warning' of https://github.com/t-8ch/util-linux
* 'po-man/warning' of https://github.com/t-8ch/util-linux:
po-man: add warning for replaced unicode dashes
Thomas Weißschuh [Sun, 14 May 2023 16:35:30 +0000 (18:35 +0200)]
build: align build-time checks between meson and autotools
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 22 Apr 2023 15:50:03 +0000 (17:50 +0200)]
mount: (tests) reuse well-known per-test fstab location
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 22 Apr 2023 15:20:45 +0000 (17:20 +0200)]
tests: (functions.sh) use per-test fstab file
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 22 Apr 2023 15:34:28 +0000 (17:34 +0200)]
mount: (tests) explicitly use test fstab location
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 22 Apr 2023 15:48:58 +0000 (17:48 +0200)]
tests: (functions.sh) create variable for test fstab location
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Chris Hofstaedtler [Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)]
Use non-deprecated chown syntax
Closes: #1007139
Thomas Weißschuh [Fri, 12 May 2023 08:00:34 +0000 (10:00 +0200)]
po-man: add warning for replaced unicode dashes
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 28 Apr 2023 18:42:01 +0000 (20:42 +0200)]
mkswap: implement --offset
Addresses #2166
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 28 Apr 2023 18:32:00 +0000 (20:32 +0200)]
mkswap: (tests) don't overwrite logfiles
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 28 Apr 2023 18:31:43 +0000 (20:31 +0200)]
mkswap: (tests) validate existence of truncate command
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Karel Zak [Thu, 11 May 2023 08:37:54 +0000 (10:37 +0200)]
libfdisk: fix fdisk_check_collisions return code
The return code (>0) is nowhere in the library used, but let's be
compatible with function comment ;-)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 May 2023 07:44:37 +0000 (09:44 +0200)]
libfdisk: fix wipe-partition feature
Addresses: https://github.com/util-linux/util-linux/issues/2216
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 10 May 2023 13:13:17 +0000 (15:13 +0200)]
Merge branch 'tests' of https://github.com/t-8ch/util-linux
* 'tests' of https://github.com/t-8ch/util-linux:
ci: don't try to install kernel modules if they are not available
ci: update package list before trying to determine package availability
tools: (asciidoctor-unicodeconverter) don't fix multi manpages
tools: (asciidoctor-unicodeconverter) properly handle dotted commands
Thomas Weißschuh [Wed, 10 May 2023 10:20:05 +0000 (12:20 +0200)]
ci: don't try to install kernel modules if they are not available
It seems linux-modules-extra-5.15.0-1036-azure got dropped from Ubuntu
repos. Maybe for security reasons.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 10 May 2023 10:37:45 +0000 (12:37 +0200)]
ci: update package list before trying to determine package availability
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 10 May 2023 10:23:20 +0000 (12:23 +0200)]
tools: (asciidoctor-unicodeconverter) don't fix multi manpages
The logic does not work for manpages describing multiple subjects, so
skip it for them.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 10 May 2023 10:21:24 +0000 (12:21 +0200)]
tools: (asciidoctor-unicodeconverter) properly handle dotted commands
Split from the end of the docname, as otherwise commands like "fsck.foo"
are stripped of their suffix.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Chris Webb [Tue, 9 May 2023 16:46:00 +0000 (17:46 +0100)]
lib/pager: fix output truncation from buffered stdout
Commit
518a0ad dropped fflush(stdout) and fflush(stderr) from
wait_for_pager() before STDOUT_FILENO and STDERR_FILENO are closed
because it is called from a signal handler and they are async-unsafe.
However, failure to flush output leads to unwanted truncation when
stdout is fully buffered, which it is by default when we are linked
against musl.
Ensure stdout and stderr are line-buffered before redirecting them to
the pager subprocess to avoid this.
Addresses: https://github.com/util-linux/util-linux/issues/2218
Signed-off-by: Chris Webb <chris@arachsys.com>
Karel Zak [Tue, 9 May 2023 11:25:09 +0000 (13:25 +0200)]
fsck: use BLKID_SUBLKS_BADCSUM
We need to be a little bit more promiscuou in fsck to see also
inconsistent superblocks.
It would be possible to do not use libmount to ask for filesystem type
and ask directly libblkid, but libmount is also used to parse fstab
and search in the file and in this case it caches FS tags. It seems
better to continue with libmount to reduce overhead and keep the code
simple.
Addresses: https://github.com/util-linux/util-linux/issues/2214
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 9 May 2023 11:21:58 +0000 (13:21 +0200)]
libmount: allow overwrite how to use libblkid
This is unnecessary for classic mount-like tasks, but application
may use libmount in situation when the default for probing is not
optimal.
Addresses: https://github.com/util-linux/util-linux/issues/2214
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 9 May 2023 11:19:20 +0000 (13:19 +0200)]
libfdisk: use BLKID_SUBLKS_BADCSUM and BLKID_PARTS_FORCE_GPT
Let's keep libblkid in more promiscuous mode to detect more possible
signatures.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 9 May 2023 09:21:57 +0000 (11:21 +0200)]
Merge branch 'sulogin-term' of https://github.com/DaanDeMeyer/util-linux
* 'sulogin-term' of https://github.com/DaanDeMeyer/util-linux:
sulogin: Don't overwrite TERM if already set
Karel Zak [Tue, 9 May 2023 09:21:37 +0000 (11:21 +0200)]
Merge branch 'ci/riscv' of https://github.com/t-8ch/util-linux
* 'ci/riscv' of https://github.com/t-8ch/util-linux:
ci: also build on riscv64
lsns: (tests) skip test if rtnetlin is nonfunctional
Karel Zak [Tue, 9 May 2023 08:52:02 +0000 (10:52 +0200)]
po-man: add cs to po4a.cfg
Signed-off-by: Karel Zak <kzak@redhat.com>
Daan De Meyer [Mon, 8 May 2023 08:03:09 +0000 (10:03 +0200)]
sulogin: Don't overwrite TERM if already set
The service invoking sulogin might already have set TERM to something
useful so if that's the case let's not overwrite it.
Thomas Weißschuh [Sat, 6 May 2023 06:25:34 +0000 (08:25 +0200)]
ci: also build on riscv64
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 6 May 2023 21:19:03 +0000 (23:19 +0200)]
lsns: (tests) skip test if rtnetlin is nonfunctional
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 6 May 2023 05:07:01 +0000 (07:07 +0200)]
po-man: clean all generated files
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sat, 6 May 2023 04:53:51 +0000 (06:53 +0200)]
po-man: ignore all generated sources
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 5 May 2023 08:42:03 +0000 (10:42 +0200)]
ci: build translated manpages during test
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 5 May 2023 21:33:14 +0000 (23:33 +0200)]
tools: (asciidoctor-unicodeconverter) fix up name section with dash
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 5 May 2023 21:14:44 +0000 (23:14 +0200)]
tools: (asciidoctor-unicodeconverter) fix state machine comparision
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Fri, 5 May 2023 09:11:23 +0000 (11:11 +0200)]
po-man: fix quoting in comparision to skip nonexisting translations
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 26 Apr 2023 06:53:28 +0000 (08:53 +0200)]
blockdev: add support for BLKGETZONESZ
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Karel Zak [Fri, 5 May 2023 07:27:33 +0000 (09:27 +0200)]
Merge branch 'ci/python' of https://github.com/t-8ch/util-linux
* 'ci/python' of https://github.com/t-8ch/util-linux:
ci: test python bindings
Thomas Weißschuh [Tue, 2 May 2023 16:53:20 +0000 (18:53 +0200)]
tests: (test_sysinfo) include sys/mount.h
When fsopen() is not provided by mount-api-utils.h it comes from
sys/mount.h.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Karel Zak [Tue, 2 May 2023 12:59:04 +0000 (14:59 +0200)]
tests: disable mount/subdir on unshared session without new mount API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 2 May 2023 11:27:52 +0000 (13:27 +0200)]
libmount: (subdir) support unshared sessions too
* enter original namespace for the final move_mount(), it means that
the original unshare() (to create the temporary mount) will be
ineffective for this final step. God bless FD based APIs (setns()
and open_tree())! ;-)
* improve cleanup code (call umount only once)
* remember private namespace
* update note in man page
Addresses: https://github.com/util-linux/util-linux/pull/2198
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 2 May 2023 10:13:53 +0000 (12:13 +0200)]
Merge branch 'mount/qemu-user' of https://github.com/t-8ch/util-linux
* 'mount/qemu-user' of https://github.com/t-8ch/util-linux:
mount: (tests) run bind mount tests on qemu-user
ci: (s390x) run container privileged and with access to /dev
mount: (tests) also skip tests on private,slave propagation
mount: (tests) skip fstab-btrfs on broken ENOTTY return
lsns: (tests) skip nsfs test on broken ENOTTY return
tests: (test_sysinfo) add helper for invalid ioctl errno
libmount: fix some typos
Karel Zak [Tue, 2 May 2023 10:13:27 +0000 (12:13 +0200)]
Merge branch 'hwclock/skip-test-show' of https://github.com/t-8ch/util-linux
* 'hwclock/skip-test-show' of https://github.com/t-8ch/util-linux:
hwclock: (tests) mark show test failed on GitHub Actions
tests: (functions.sh): add func to detect virtualization platform
Karel Zak [Tue, 2 May 2023 09:36:49 +0000 (11:36 +0200)]
sulogin: fix KDGKBMODE ifdef
* remove ifdef-else for KDGKBMODE
* always call KDGKBMODE for virtual console to get K_UNICODE status
* use KDGKBMODE as a fallback to detect serial line
Fixes: https://github.com/util-linux/util-linux/issues/2185
Suggested-by: Marcos Mello
Signed-off-by: Karel Zak <kzak@redhat.com>
Thomas Weißschuh [Mon, 24 Apr 2023 15:22:01 +0000 (17:22 +0200)]
mount: (tests) run bind mount tests on qemu-user
Since commit
e828630a16c7 ("libmount: recover from ENOSYS for the new API")
these work correctly.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Tue, 25 Apr 2023 06:11:28 +0000 (08:11 +0200)]
ci: (s390x) run container privileged and with access to /dev
This is necessary for the mount tests.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sun, 30 Apr 2023 18:50:21 +0000 (20:50 +0200)]
mount: (tests) also skip tests on private,slave propagation
On docker the mount propagation is "private,slave".
Adapt the pattern to handle this.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sun, 30 Apr 2023 08:24:34 +0000 (10:24 +0200)]
mount: (tests) skip fstab-btrfs on broken ENOTTY return
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sun, 30 Apr 2023 08:24:05 +0000 (10:24 +0200)]
lsns: (tests) skip nsfs test on broken ENOTTY return
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Sun, 30 Apr 2023 08:18:20 +0000 (10:18 +0200)]
tests: (test_sysinfo) add helper for invalid ioctl errno
This can be used to detect qemu-user returning ENOSYS for invalid ioctl
numbers.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Thomas Weißschuh [Wed, 26 Apr 2023 20:50:45 +0000 (22:50 +0200)]
libmount: fix some typos
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>