From a8fcac42c3b39f3323656da59bae3786066690c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Sun, 4 Feb 2024 15:21:10 +0100 Subject: [PATCH] Fix 'install' calls in post scriptlet ``` $ install -u install: invalid option -- 'u' Try 'install --help' for more information. ``` Fixes: e3e7bad Use install to setup permissions directly --- audit.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/audit.spec b/audit.spec index eb97d54..ff7c995 100644 --- a/audit.spec +++ b/audit.spec @@ -162,14 +162,14 @@ if [ "$files" -eq 0 ] ; then echo "No rules detected, adding default" %if 0%{?rhel} if [ -e %{_datadir}/%{name}-rules/10-base-config.rules ] ; then - install -m 0600 -u 0 -g 0 -p %{_datadir}/%{name}-rules/10-base-config.rules /etc/audit/rules.d/audit.rules + install -m 0600 -o 0 -g 0 -p %{_datadir}/%{name}-rules/10-base-config.rules /etc/audit/rules.d/audit.rules %else # FESCO asked for audit to be off by default. #1117953 if [ -e %{_datadir}/%{name}-rules/10-no-audit.rules ] ; then - install -m 0600 -u 0 -g 0 -p %{_datadir}/%{name}-rules/10-no-audit.rules /etc/audit/rules.d/audit.rules + install -m 0600 -o 0 -g 0 -p %{_datadir}/%{name}-rules/10-no-audit.rules /etc/audit/rules.d/audit.rules %endif else - install -m 0600 -u 0 -g 0 /dev/null /etc/audit/rules.d/audit.rules + install -m 0600 -o 0 -g 0 /dev/null /etc/audit/rules.d/audit.rules fi # Only load the new rules if not running during an rpm-ostree compose if [ ! -f /run/ostree-booted ] ; then @@ -291,6 +291,9 @@ fi %attr(750,root,root) %{_sbindir}/audispd-zos-remote %changelog +* Sun Feb 04 2024 Timothée Ravier - 4.0-8 +- Fix 'install' calls in post scriptlet + * Thu Jan 25 2024 Steve Grubb 4.0-7 - Don't do "live" operations during rpm-ostree composes