From bfafe5a462c7465c8c2b7dd876475bab50bf384d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 22:18:25 +0100 Subject: [PATCH] fix /var/lock permissions to avoid conflicting with liblockdev [release 2.2-20mamba;Tue Jun 25 2019] --- filesystem.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/filesystem.spec b/filesystem.spec index 520f71b..d4580ca 100644 --- a/filesystem.spec +++ b/filesystem.spec @@ -2,7 +2,7 @@ Name: filesystem Version: 2.2 -Release: 19mamba +Release: 20mamba Summary: The basic directory layout for a Linux system Group: System/Configuration Vendor: openmamba @@ -72,6 +72,13 @@ ln -s ../run %{buildroot}/var/run } : +%post +/sbin/ldconfig +if [ $1 -ge 1 ]; then + groupadd tty -g %{tty_groupid} 2>/dev/null || true +fi +: + %files %defattr(-,root,root) %attr(0755,root,root) %dir / @@ -139,8 +146,8 @@ ln -s ../run %{buildroot}/var/run %dir /var/lib %dir /var/lib/misc %dir /var/local -%dir /var/lock -%attr(0755,root,root) /var/lock/subsys +%attr(1775,root,tty) %dir %{_localstatedir}/lock +%attr(0755,root,root) %dir %{_localstatedir}/lock/subsys %dir /var/log %dir /var/mail %dir /var/opt @@ -161,6 +168,9 @@ ln -s ../run %{buildroot}/var/run /usr/tmp %changelog +* Tue Jun 25 2019 Silvan Calarco 2.2-20mamba +- fix /var/lock permissions to avoid conflicting with liblockdev + * Sun Mar 17 2019 Silvan Calarco 2.2-19mamba - migrate /var/run to a symlink of /run