Fix whitespace / rpmlint warnings
Fixes warnings like: ``` audit.spec:149: W: mixed-use-of-spaces-and-tabs (spaces: line 149, tab: line 108) ```
This commit is contained in:
parent
81c52d8251
commit
53819161c7
24
audit.spec
24
audit.spec
@ -105,10 +105,10 @@ sed -i 's/ ids / /' audisp/plugins/Makefile.in
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-python=no \
|
%configure --with-python=no \
|
||||||
--with-python3=yes \
|
--with-python3=yes \
|
||||||
--enable-gssapi-krb5=yes --with-arm --with-aarch64 \
|
--enable-gssapi-krb5=yes --with-arm --with-aarch64 \
|
||||||
--with-libcap-ng=yes --without-golang --enable-zos-remote \
|
--with-libcap-ng=yes --without-golang --enable-zos-remote \
|
||||||
--enable-systemd --enable-experimental --with-io_uring
|
--enable-systemd --enable-experimental --with-io_uring
|
||||||
|
|
||||||
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
||||||
|
|
||||||
@ -159,18 +159,18 @@ fi
|
|||||||
# Copy default rules into place on new installation
|
# Copy default rules into place on new installation
|
||||||
files=`ls /etc/audit/rules.d/ 2>/dev/null | wc -w`
|
files=`ls /etc/audit/rules.d/ 2>/dev/null | wc -w`
|
||||||
if [ "$files" -eq 0 ] ; then
|
if [ "$files" -eq 0 ] ; then
|
||||||
echo "No rules detected, adding default"
|
echo "No rules detected, adding default"
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
if [ -e %{_datadir}/%{name}-rules/10-base-config.rules ] ; then
|
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 -u 0 -g 0 -p %{_datadir}/%{name}-rules/10-base-config.rules /etc/audit/rules.d/audit.rules
|
||||||
%else
|
%else
|
||||||
# FESCO asked for audit to be off by default. #1117953
|
# FESCO asked for audit to be off by default. #1117953
|
||||||
if [ -e %{_datadir}/%{name}-rules/10-no-audit.rules ] ; then
|
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 -u 0 -g 0 -p %{_datadir}/%{name}-rules/10-no-audit.rules /etc/audit/rules.d/audit.rules
|
||||||
%endif
|
%endif
|
||||||
else
|
else
|
||||||
install -m 0600 -u 0 -g 0 /dev/null /etc/audit/rules.d/audit.rules
|
install -m 0600 -u 0 -g 0 /dev/null /etc/audit/rules.d/audit.rules
|
||||||
fi
|
fi
|
||||||
# Only load the new rules if not running during an rpm-ostree compose
|
# Only load the new rules if not running during an rpm-ostree compose
|
||||||
if [[ ! -f /run/ostree-booted ]]: then
|
if [[ ! -f /run/ostree-booted ]]: then
|
||||||
# Make the new rules active
|
# Make the new rules active
|
||||||
|
Loading…
Reference in New Issue
Block a user