From 02fb99379bebe027828b6b01be751f35ad215845 Mon Sep 17 00:00:00 2001 From: zhangyao Date: Mon, 26 May 2025 20:10:00 +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 be166da..9695a1e 100644 --- a/systemd.spec +++ b/systemd.spec @@ -25,7 +25,7 @@ Name: systemd Url: https://systemd.io/ Version: 255 -Release: 42 +Release: 43 License: MIT and LGPLv2+ and GPLv2+ Summary: System and Service Manager @@ -480,6 +480,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 @@ -876,6 +878,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 @@ -1691,6 +1694,9 @@ fi %{_unitdir}/veritysetup.target %changelog +* Mon May 26 2025 zhangyao - 255-43 +- Take ownership of /var/log/lastlog from util-linux + * Mon May 26 2025 fuanan - 255-42 - backport: sync patches from systemd community add backport-run-pass-the-pty-slave-fd-to-transient-service.patch -- Gitee