diff --git a/systemd.spec b/systemd.spec index be166da5b5dc958b790c96b4d7cf14bb2c953e99..9695a1ef2616fc5672c41862ad691447ff2cd663 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