diff --git a/util-linux.spec b/util-linux.spec index 74881a56ee7c9b16059c64b3dc0c6a4f97c0cfed..24bdfd4948321385c5537a7779cc5fd8991dd981 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -3,7 +3,7 @@ Name: util-linux Version: 2.39.1 -Release: 21 +Release: 22 Summary: A random collection of Linux utilities License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git @@ -268,7 +268,7 @@ make check %make_install install -d %{buildroot}%{_sysconfdir}/pam.d -install -d %{buildroot}{/run/uuidd,/var/lib/libuuid,/var/log} +install -d %{buildroot}{/run/uuidd,/var/lib/libuuid} install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/login install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/remote @@ -284,9 +284,6 @@ install -m644 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/runuser-l ln -sf hwclock %{buildroot}%{_sbindir}/clock ln -sf ../proc/self/mounts %{buildroot}/etc/mtab -touch %{buildroot}/var/log/lastlog -chmod 0644 %{buildroot}/var/log/lastlog - echo ".so man8/hwclock.8" > %{buildroot}%{_mandir}/man8/clock.8 %find_lang %name @@ -311,20 +308,6 @@ useradd -r -g uuidd -d /var/lib/libuuid -s /sbin/nologin \ exit 0 %post -[ -d /var/log ] || mkdir -p /var/log - -touch /var/log/lastlog -chown root:root /var/log/lastlog -chmod 0644 /var/log/lastlog - -if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled -then - SECXT=`/usr/sbin/matchpathcon -n /var/log/lastlog 2> /dev/null` - if [ -n "$SECXT" ] - then - /usr/bin/chcon "$SECXT" /var/log/lastlog >/dev/null 2>&1 || : - fi -fi if [ ! -L /etc/mtab ] then ln -sf ../proc/self/mounts /etc/mtab || : @@ -384,7 +367,6 @@ fi %attr(755,root,root) %{_bindir}/login %attr(2755,root,tty) %{_bindir}/write %attr(2555,root,tty) %{_bindir}/wall -%ghost %attr(0644,root,root) %verify(not md5 size mtime) /var/log/lastlog %ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/mtab %{_unitdir}/fstrim.* %{_bindir}/{cal,chrt,col,colcrt,colrm,column,chmem,dmesg,eject,fallocate,fincore,findmnt,choom,uclampset} @@ -483,6 +465,12 @@ fi %endif %changelog +* Mon May 26 2025 hugel - 2.39.1-22 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:release ownership of /var/log/lastlog, move to systemd + * Fri Apr 18 2025 hugel - 2.39.1-21 - Type:bugfix - CVE:NA