Compare commits

...
Sign in to create a new pull request.

13 commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
6a8de54d36 Version 254.20
- Various small fixes in multiple components
- Hardware database update
2024-11-16 17:00:59 +01:00
Zbigniew Jędrzejewski-Szmek
7ce2e1ec59 Version 254.19
- Various small fixes in multiple components.
2024-10-11 21:19:55 +02:00
Zbigniew Jędrzejewski-Szmek
c62b7bd297 Version 254.18
- Various small fixes in man components, incl. systemd-resolved,
  systemd-boot, virtualization detection, kernel-install.
- Includes a hardward database update.
2024-09-15 19:09:51 +02:00
Zbigniew Jędrzejewski-Szmek
0b1cff5d36 Include patch for high uids
... (rhbz#2251843)
2024-09-15 17:11:17 +02:00
Zbigniew Jędrzejewski-Szmek
ca9c29affa Version 254.16
- Fixes for systemd, systemd-resolved, man pages and other documentation,
  unit installation
- Hardware db update
2024-07-25 14:51:13 +02:00
Zbigniew Jędrzejewski-Szmek
73a4129c70 Version 254.14
- Various small fixes (systemd, systemd-resolved, systemd-repart, etc.)
2024-06-29 16:46:48 +02:00
Zbigniew Jędrzejewski-Szmek
d81d48ce46 Version 254.13 2024-05-28 10:44:56 +02:00
Zbigniew Jędrzejewski-Szmek
ba903db343 Version 254.12
- Too many small bugfixes too list.
- Updates to hwdb from 2024-04-08 in upstream.
- Resolves rhbz#2269506.
2024-05-11 13:54:44 +02:00
Zbigniew Jędrzejewski-Szmek
9107dc78d9 Version 255.10
- Also includes fixes for rbhz#2264404 and rhbz#2263890.
2024-03-01 17:04:07 +01:00
Zbigniew Jędrzejewski-Szmek
15596f380f Version 254.9
- Fixes kernel-install on /boot on btrfs (rhbz#2251262)
- Various small fixes for systemd itself, systemd-resolved, bootctl,
  systemd-networkd, udev, systemd-repart, systemd-homed, libsystemd,
  virtualization detection, systemd-analyze, systemd-dissect,
  systemd-journal-remote, documentation.
- Hardware database update.
2024-02-07 14:20:51 +01:00
Zbigniew Jędrzejewski-Szmek
0de9669d74 Add missing %postun scriptlets for systemd-{resolved,networkd}
... (rhbz#2255718)

I'm not sure what happened here. But I think both services should be
fine with a restart and there is no reason not to do this.
2024-01-22 17:46:07 +01:00
Zbigniew Jędrzejewski-Szmek
3ca9992ac4 Version 254.8
- A bunch of fixes for various components: systemd, systemctl,
  systemd-firstboot, systemd-repart, bootctl, systemd-networkd,
  systemd-network-generator, systemd-analyze, systemd-dissect, ukify,
  man pages.
- Also has a patch for CVE-2023-7008 (rhbz#2222260)
2024-01-22 16:55:00 +01:00
Zbigniew Jędrzejewski-Szmek
3bbbb1e981 Version 254.7
- A bunch of fixes: systemd, systemctl device argument parsing, improvements in
  systemd-analyze, systemd-networkd, systemd-journal-upload, systemd-repart,
  systemd-logind, systemd-nspawn, systemd-cryptsetup, systemd-udevd, udevadm,
  and udev rules, coredumpctl, systemd-xdg-autostart-generator, sd-journal code
  for entry lookup, systemd-sleep, portablectl, resolvectl, systemd-boot,
  bootctl, systemd-stub, kernel-install, various systemd units, memory access
  correctness, D-Bus interfaces, documentation, soft-reboot, systemd-firstboot,
  utmp, systemd-homed, systemd-stdio-bridge, systemd-resolved.
- Includes an update of the hardware database (rhbz#2252022)
- Includes an updated list of syscalls for kernels 6.6 and 6.7
2023-11-29 23:08:19 +01:00
3 changed files with 85 additions and 16 deletions

View file

@ -0,0 +1,58 @@
From 87d4f23ce4f82c39890e094bee05098d3a99d8f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Tue, 9 Jan 2024 11:28:04 +0100
Subject: [PATCH] journal: again create user journals for users with high uids
This effectively reverts a change in 115d5145a257c1a27330acf9f063b5f4d910ca4d
'journald: move uid_for_system_journal() to uid-alloc-range.h', which slipped
in an additional check of uid_is_container(uid). The problem is that that change
is not backwards-compatible at all and very hard for users to handle.
There is no common agreement on mappings of high-range uids. Systemd declares
ownership of a large range for container uids in https://systemd.io/UIDS-GIDS/,
but this is only a recent change and various sites allocated those ranges
in a different way, in particular FreeIPA uses (used?) uids from this range
for human users. On big sites with lots of users changing uids is obviously a
hard problem. We generally assume that uids cannot be "freed" and/or changed
and/or reused safely, so we shouldn't demand the same from others.
This is somewhat similar to the situation with SYSTEM_ALLOC_UID_MIN /
SYSTEM_UID_MAX, which we tried to define to a fixed value in our code, causing
huge problems for existing systems with were created with a different
definition and couldn't be easily updated. For that case, we added a
configuration time switch and we now parse /etc/login.defs to actually use the
value that is appropriate for the local system.
Unfortunately, login.defs doesn't have a concept of container allocation ranges
(and we don't have code to parse and use those nonexistent names either), so we
can't tell users to adjust logind.defs to work around the changed definition.
login.defs has SUB_UID_{MIN,MAX}, but those aren't really the same thing,
because they are used to define where the add allocations for subuids, which is
generally a much smaller range. Maybe we should talk with other folks about
the appropriate allocation ranges and define some new settings in login.defs.
But this would require discussion and coordination with other projects first.
Actualy, it seems that this change was needed at all. The code in the container
does not log to the outside journal. It talks to its own journald, which does
journal splitting using its internal logic based on shifted uids. So let's
revert the change to fix user systems.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2251843.
---
src/basic/uid-alloc-range.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/basic/uid-alloc-range.c b/src/basic/uid-alloc-range.c
index 669cb6d56f..7b724b7959 100644
--- a/src/basic/uid-alloc-range.c
+++ b/src/basic/uid-alloc-range.c
@@ -127,5 +127,5 @@ bool uid_for_system_journal(uid_t uid) {
/* Returns true if the specified UID shall get its data stored in the system journal. */
- return uid_is_system(uid) || uid_is_dynamic(uid) || uid == UID_NOBODY || uid_is_container(uid);
+ return uid_is_system(uid) || uid_is_dynamic(uid) || uid == UID_NOBODY;
}
--
2.46.0

View file

@ -1 +1 @@
SHA512 (systemd-254.5.tar.gz) = 8e9b4f802c4da2a0dea6028df78d20de5d96802d8f614d0392e89dea605cdd8d9c1724ce3ea382378d582402646f8bea2ffcd55a84262461721ee3f691105b7a
SHA512 (systemd-254.20.tar.gz) = 072a5b516c74e7d53c459f22fee9efbf11bf4a9504ee6e60a9ae7075623487a0764b49d770205413c8662cdb9a467dabc3dae2ed07ccf313f24355e1edc3090c

View file

@ -35,7 +35,7 @@
Name: systemd
Url: https://systemd.io
%if %{without inplace}
Version: 254.5
Version: 254.20
%else
# determine the build information from local checkout
Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/')
@ -124,8 +124,12 @@ Patch0012: 0003-ci-add-test-for-poll-limit.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1738828
Patch0490: use-bfq-scheduler.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2251843
# https://github.com/systemd/systemd/pull/30846
Patch0491: 0001-journal-again-create-user-journals-for-users-with-hi.patch
# Adjust upstream config to use our shared stack
Patch0491: fedora-use-system-auth-in-pam-systemd-user.patch
Patch0492: fedora-use-system-auth-in-pam-systemd-user.patch
%ifarch %{ix86} x86_64 aarch64
%global have_gnu_efi 1
@ -1070,6 +1074,24 @@ fi
%preun networkd
%systemd_preun systemd-networkd.service systemd-networkd-wait-online.service
%postun networkd
%systemd_postun_with_restart systemd-networkd.service
%systemd_postun systemd-networkd-wait-online.service
%post resolved
[ $1 -eq 1 ] || exit 0
# Initial installation
touch %{_localstatedir}/lib/rpm-state/systemd-resolved.initial-installation
# Related to https://bugzilla.redhat.com/show_bug.cgi?id=1943263
if ls /usr/lib/systemd/libsystemd-shared-24[0-8].so &>/dev/null; then
echo "Skipping presets for systemd-resolved.service, seems we are upgrading from old systemd."
exit 0
fi
%systemd_post systemd-resolved.service
%preun resolved
if [ $1 -eq 0 ] ; then
systemctl disable --quiet \
@ -1085,19 +1107,8 @@ if [ $1 -eq 0 ] ; then
fi
fi
%post resolved
[ $1 -eq 1 ] || exit 0
# Initial installation
touch %{_localstatedir}/lib/rpm-state/systemd-resolved.initial-installation
# Related to https://bugzilla.redhat.com/show_bug.cgi?id=1943263
if ls /usr/lib/systemd/libsystemd-shared-24[0-8].so &>/dev/null; then
echo "Skipping presets for systemd-resolved.service, seems we are upgrading from old systemd."
exit 0
fi
%systemd_post systemd-resolved.service
%postun resolved
%systemd_postun_with_restart systemd-resolved.service
%posttrans resolved
[ -e %{_localstatedir}/lib/rpm-state/systemd-resolved.initial-installation ] || exit 0