Karel Zak [Mon, 24 Feb 2025 13:04:53 +0000 (14:04 +0100)]
Libmount: Fix removal of "owner" option when executed as root
When executed as root, libmount replaces the "owner" and "group" mount
options with "nosuid, nodev, ..." However, this can result in an
"invalid argument" error because libmount removes the unwanted options
first and then tries to address the location for the new options using
the already removed options. To fix this, we need to reverse the order
of operations.
Reported-by: hxinzhe <hxinzhe1024@163.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Yu Watanabe [Fri, 14 Feb 2025 01:32:44 +0000 (10:32 +0900)]
zramctl: wait for device being initialized and unlocked by udevd
systemd-udevd takes a lock during processing the uevent for a block
device. The kernel refuses 'reset' attribute for zram device is written
when the device node is opened. Hence, during systemd-udevd processes a
uevent for zram device, we cannot write 'reset' attribute.
Let's wait for the device being initialized and unlocked by udevd.
Note, there still exists a race window, as we need to release the lock
before writing 'reset' attribute. But, the situation should be better
now.
Karel Zak [Tue, 18 Feb 2025 12:38:59 +0000 (13:38 +0100)]
docs: reduce and freeze NEWS file
Originally, it was required by Automake. However, for a long time, we
have been using the "foreign" Automake option, so it is no longer
necessary. All the details can be found in the ReleaseNotes. Let's
keep it simple.
Karel Zak [Tue, 18 Feb 2025 11:36:16 +0000 (12:36 +0100)]
docs: reduce AUTHORS file
It's already over 1900 lines of email addresses, and it seems better
to require people who care about the names to use "git log" instead of
distributing a database of emails.
Karel Zak [Tue, 18 Feb 2025 10:33:42 +0000 (11:33 +0100)]
Merge branch 'PR/autotools-cleanups' of https://github.com/karelzak/util-linux-work
* 'PR/autotools-cleanups' of https://github.com/karelzak/util-linux-work:
tests: (lslogins) use GMT timezone
autotools: fix po-man discheck
tests: (lslogins) write to TS_OUTDIR only, check for sqlite3
tests: (lslogins) use fixed time format
autotools: update po-man files on make dist
autotools: add missing HAVE_LIBLASTLOG2
remove duplicate includes
unshare: in usage text, reshuffle options into somewhat related groups
First the mount-related options (because --mount was the first
namespace option earlier) plus two other options about folders;
then the options about UIDS and GIDS; then two options about
forking; then two miscellaneous options; and lastly the two
options about time, as --time was the last namespace option.
Petre Tudor [Wed, 29 Jan 2025 17:05:18 +0000 (17:05 +0000)]
chrt: (tests) Add new cases for custom slice on SCHED_{OTHER,BATCH}
Adds two new test cases setting --sched-runtime for SCHED_{OTHER,BATCH}.
The new custom slice tests are skipped for kernel versions < 6.12,
which do not have the feature. The existing chrt tests for
SCHED_{OTHER,BATCH} are skipped for kernel versions >= 6.12.
This is for two reasons:
- the default sched_runtime value depends on target platform
- without custom slice support, the value of sched_runtime is
always zero for SCHED_{OTHER,BATCH}
Expected output with kernel version < 6.12:
schedutils: chrt ...
: batch ... OK
: batch-custom-slice ... SKIPPED
: other ... OK
: other-custom-slice ... SKIPPED
: deadline ... OK
Expected output with kernel version >= 6.12:
schedutils: chrt ...
: batch ... SKIPPED
: batch-custom-slice ... OK
: other ... SKIPPED
: other-custom-slice ... OK
: deadline ... OK
Petre Tudor [Thu, 30 Jan 2025 12:05:51 +0000 (12:05 +0000)]
chrt: (man) Add note for custom slice length on SCHED_{OTHER,BATCH}
Adds note to the chrt man page, explaining how the --sched-runtime
parameter can be used to request a custom slice length for tasks using
SCHED_{OTHER,BATCH}.
Karel Zak [Wed, 22 Jan 2025 17:27:44 +0000 (18:27 +0100)]
po-man: cleanup install
* Use autotools $(abs_ ) paths.
* Remove hidden path prefixes from poman-install.sh. Use $DESTDIR and
$MESON_INSTALL_PREFIX on the poman-install.sh command line(--mandir).
* Use autotools compatible "install" calls (without -D).
* Add timestamp to autotools to avoid repeating "gen-poman" calls.
Jordan Williams [Tue, 26 Nov 2024 15:07:15 +0000 (09:07 -0600)]
meson: use files() for man page source files
The files() command in Meson allows tracking files across directories.
It requires the command to be used in the directory containing the
files.
This commit uses the files() command for all of the man page sources.
This is a preparatory commit for translating the man pages.
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
Karel Zak [Wed, 12 Feb 2025 09:50:05 +0000 (10:50 +0100)]
Merge branch 'PR/Benno-text-fixes-w7' of https://github.com/karelzak/util-linux-work
* 'PR/Benno-text-fixes-w7' of https://github.com/karelzak/util-linux-work:
zramctl: improve grammar in usage and don't gettextize list of algorithms
usage: mention also the missing KiB and MiB as permissible suffixes
man pages: use the same verb for --version as for --help, like in usages
renice: put text that belongs together into a single translatable message
blkzone: correct the wording of an error message, from ioctl to function
blkpr: grammarize the description of the tool and its options
textual: give seven error messages the same form as two others
unshare: don't mark "|" and ":" as part of the placeholders
mount: properly mark the arguments of the 'ro' and 'rw' extended options
textual: consistently mark "=" as literal before an optional argument
textual: remove other inconsistent uses of "=" before option argument
unshare: use single asterisks around long options, double around values
unshare: don't use "=" before a required option argument
setpriv: make message for failing PR_GET_PDEATHSIG the same as the other
Karel Zak [Wed, 12 Feb 2025 09:13:10 +0000 (10:13 +0100)]
Merge branch 'ipc' of https://github.com/PrasannaPaithankar/util-linux
* '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