From 9dc6c5f4134d43daa1d698ec34b979abe726ea60 Mon Sep 17 00:00:00 2001 From: markeryang Date: Thu, 5 Jun 2025 14:58:42 +0800 Subject: [PATCH] Take ownership of /var/log/lastlog from util-linux --- systemd.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/systemd.spec b/systemd.spec index f6dc026..f06ae84 100644 --- a/systemd.spec +++ b/systemd.spec @@ -25,7 +25,7 @@ Name: systemd Url: https://systemd.io/ Version: 255 -Release: 43 +Release: 44 License: LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later Summary: System and Service Manager @@ -491,6 +491,8 @@ mkdir -p %{buildroot}%{system_unit_dir}/dbus.target.wants mkdir -p %{buildroot}%{system_unit_dir}/syslog.target.wants mkdir -p %{buildroot}%{_localstatedir}/run mkdir -p %{buildroot}%{_localstatedir}/log +touch %{buildroot}%{_localstatedir}/log/lastlog +chmod 0664 %{buildroot}%{_localstatedir}/log/lastlog touch %{buildroot}%{_localstatedir}/run/utmp touch %{buildroot}%{_localstatedir}/log/{w,b}tmp @@ -890,6 +892,7 @@ fi %ghost %attr(0600,root,utmp) /var/log/btmp %ghost %attr(0700,root,root) %dir /var/log/private %ghost %attr(0664,root,utmp) /var/run/utmp +%ghost %attr(0664,root,utmp) %verify(not md5 size mtime) /var/log/lastlog %ghost %attr(0700,root,root) %dir /var/cache/private %ghost %attr(0700,root,root) %dir /var/lib/private %dir /var/lib/systemd @@ -1709,6 +1712,9 @@ fi %{_unitdir}/veritysetup.target %changelog +* Thu Jun 05 2025 yanglongkang - 255-44 +- Take ownership of /var/log/lastlog from util-linux + * Wed Jun 04 2025 yanglongkang - 255-43 - backport: sync patches from systemd community add backport-run-pass-the-pty-slave-fd-to-transient-service.patch -- Gitee