automatic version update by autodist [release 4.0-1mamba;Wed Feb 07 2024]
This commit is contained in:
parent
a524a479c3
commit
7291913a84
@ -1,26 +0,0 @@
|
|||||||
diff -Nru audit-2.8.4.orig/init.d/auditd.state audit-2.8.4/init.d/auditd.state
|
|
||||||
--- audit-2.8.4.orig/init.d/auditd.state 2018-05-21 19:38:08.000000000 +0200
|
|
||||||
+++ audit-2.8.4/init.d/auditd.state 2019-01-05 08:46:05.999451866 +0100
|
|
||||||
@@ -7,7 +7,7 @@
|
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/bin:/usr/sbin
|
|
||||||
prog="auditd"
|
|
||||||
-state_file="/var/run/auditd.state"
|
|
||||||
+state_file="/run/auditd.state"
|
|
||||||
. /etc/init.d/functions
|
|
||||||
|
|
||||||
printf "Getting auditd internal state: "
|
|
||||||
diff -Nru audit-2.8.4.orig/src/auditd.c audit-2.8.4/src/auditd.c
|
|
||||||
--- audit-2.8.4.orig/src/auditd.c 2018-05-21 19:38:08.000000000 +0200
|
|
||||||
+++ audit-2.8.4/src/auditd.c 2019-01-05 08:44:18.153983329 +0100
|
|
||||||
@@ -66,8 +66,8 @@
|
|
||||||
/* Local data */
|
|
||||||
static int fd = -1, pipefds[2] = {-1, -1};
|
|
||||||
static struct daemon_conf config;
|
|
||||||
-static const char *pidfile = "/var/run/auditd.pid";
|
|
||||||
-static const char *state_file = "/var/run/auditd.state";
|
|
||||||
+static const char *pidfile = "/run/auditd.pid";
|
|
||||||
+static const char *state_file = "/run/auditd.state";
|
|
||||||
static int init_pipe[2];
|
|
||||||
static int do_fork = 1, opt_aggregate_only = 0, config_dir_set = 0;
|
|
||||||
static struct auditd_event *cur_event = NULL, *reconfig_ev = NULL;
|
|
@ -1,83 +0,0 @@
|
|||||||
diff -ru audit-3.0.orig/init.d/auditd.cron audit-3.0/init.d/auditd.cron
|
|
||||||
--- audit-3.0.orig/init.d/auditd.cron 2020-12-16 21:44:34.000000000 +0100
|
|
||||||
+++ audit-3.0/init.d/auditd.cron 2021-02-13 20:44:43.484919856 +0100
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
# based on a cron job.
|
|
||||||
##########
|
|
||||||
|
|
||||||
-/sbin/service auditd rotate
|
|
||||||
+/usr/sbin/service auditd rotate
|
|
||||||
EXITVALUE=$?
|
|
||||||
if [ $EXITVALUE != 0 ]; then
|
|
||||||
/usr/bin/logger -t auditd "ALERT exited abnormally with [$EXITVALUE]"
|
|
||||||
diff -ru audit-3.0.orig/init.d/auditd.service audit-3.0/init.d/auditd.service
|
|
||||||
--- audit-3.0.orig/init.d/auditd.service 2020-12-16 21:44:34.000000000 +0100
|
|
||||||
+++ audit-3.0/init.d/auditd.service 2021-02-13 20:44:43.484919856 +0100
|
|
||||||
@@ -18,15 +18,15 @@
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/run/auditd.pid
|
|
||||||
-ExecStart=/sbin/auditd
|
|
||||||
+ExecStart=/usr/sbin/auditd
|
|
||||||
## To not use augenrules, copy this file to /etc/systemd/system/auditd.service
|
|
||||||
## and comment/delete the next line and uncomment the auditctl line.
|
|
||||||
## NOTE: augenrules expect any rules to be added to /etc/audit/rules.d/
|
|
||||||
-ExecStartPost=-/sbin/augenrules --load
|
|
||||||
-#ExecStartPost=-/sbin/auditctl -R /etc/audit/audit.rules
|
|
||||||
+ExecStartPost=-/usr/sbin/augenrules --load
|
|
||||||
+#ExecStartPost=-/usr/sbin/auditctl -R /etc/audit/audit.rules
|
|
||||||
# By default we don't clear the rules on exit. To enable this, uncomment
|
|
||||||
# the next line after copying the file to /etc/systemd/system/auditd.service
|
|
||||||
-#ExecStopPost=/sbin/auditctl -R /etc/audit/audit-stop.rules
|
|
||||||
+#ExecStopPost=/usr/sbin/auditctl -R /etc/audit/audit-stop.rules
|
|
||||||
|
|
||||||
### Security Settings ###
|
|
||||||
MemoryDenyWriteExecute=true
|
|
||||||
diff -ru audit-3.0.orig/init.d/augenrules audit-3.0/init.d/augenrules
|
|
||||||
--- audit-3.0.orig/init.d/augenrules 2020-12-16 21:44:34.000000000 +0100
|
|
||||||
+++ audit-3.0/init.d/augenrules 2021-02-13 20:44:43.485919874 +0100
|
|
||||||
@@ -39,7 +39,7 @@
|
|
||||||
|
|
||||||
try_load() {
|
|
||||||
if [ $LoadRules -eq 1 ] ; then
|
|
||||||
- /sbin/auditctl -R ${DestinationFile}
|
|
||||||
+ /usr/sbin/auditctl -R ${DestinationFile}
|
|
||||||
RETVAL=$?
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
diff -ru audit-3.0.orig/audisp/plugins/remote/au-remote.conf audit-3.0/audisp/plugins/remote/au-remote.conf
|
|
||||||
--- audit-3.0.orig/audisp/plugins/remote/au-remote.conf 2020-12-16 21:44:34.000000000 +0100
|
|
||||||
+++ audit-3.0/audisp/plugins/remote/au-remote.conf 2021-02-13 21:27:18.038655845 +0100
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
|
|
||||||
active = no
|
|
||||||
direction = out
|
|
||||||
-path = /sbin/audisp-remote
|
|
||||||
+path = /usr/sbin/audisp-remote
|
|
||||||
type = always
|
|
||||||
#args =
|
|
||||||
format = string
|
|
||||||
diff -ru audit-3.0.orig/audisp/plugins/syslog/syslog.conf audit-3.0/audisp/plugins/syslog/syslog.conf
|
|
||||||
--- audit-3.0.orig/audisp/plugins/syslog/syslog.conf 2020-12-16 21:44:34.000000000 +0100
|
|
||||||
+++ audit-3.0/audisp/plugins/syslog/syslog.conf 2021-02-13 21:27:06.886482221 +0100
|
|
||||||
@@ -8,7 +8,7 @@
|
|
||||||
|
|
||||||
active = no
|
|
||||||
direction = out
|
|
||||||
-path = /sbin/audisp-syslog
|
|
||||||
+path = /usr/sbin/audisp-syslog
|
|
||||||
type = always
|
|
||||||
args = LOG_INFO
|
|
||||||
format = string
|
|
||||||
diff -ru audit-3.0.orig/audisp/plugins/zos-remote/audispd-zos-remote.conf audit-3.0/audisp/plugins/zos-remote/audispd-zos-remote.conf
|
|
||||||
--- audit-3.0.orig/audisp/plugins/zos-remote/audispd-zos-remote.conf 2020-12-16 21:44:34.000000000 +0100
|
|
||||||
+++ audit-3.0/audisp/plugins/zos-remote/audispd-zos-remote.conf 2021-02-13 21:26:36.495010422 +0100
|
|
||||||
@@ -8,7 +8,7 @@
|
|
||||||
|
|
||||||
active = no
|
|
||||||
direction = out
|
|
||||||
-path = /sbin/audispd-zos-remote
|
|
||||||
+path = /usr/sbin/audispd-zos-remote
|
|
||||||
type = always
|
|
||||||
args = /etc/audisp/zos-remote.conf
|
|
||||||
format = string
|
|
59
audit.spec
59
audit.spec
@ -1,5 +1,5 @@
|
|||||||
Name: audit
|
Name: audit
|
||||||
Version: 3.1.2
|
Version: 4.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: User space tools for kernel auditing
|
Summary: User space tools for kernel auditing
|
||||||
Group: System/Tools
|
Group: System/Tools
|
||||||
@ -8,18 +8,14 @@ Distribution: openmamba
|
|||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://people.redhat.com/sgrubb/audit/
|
URL: https://people.redhat.com/sgrubb/audit/
|
||||||
Source: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
|
Source: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
|
||||||
Patch0: audit-3.0-usrsbin.patch
|
|
||||||
Patch1: audit-2.8.4-rundir.patch
|
|
||||||
License: GPL, LGPL
|
License: GPL, LGPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libcap-ng-devel
|
BuildRequires: libcap-ng-devel
|
||||||
BuildRequires: libe2fs-devel
|
|
||||||
BuildRequires: libkrb5-devel
|
BuildRequires: libkrb5-devel
|
||||||
BuildRequires: libnsl-devel
|
BuildRequires: libnsl-devel
|
||||||
BuildRequires: libopenldap-devel
|
BuildRequires: libopenldap-devel
|
||||||
BuildRequires: libpython3-devel
|
BuildRequires: libpython311-devel
|
||||||
BuildRequires: libtirpc-devel
|
|
||||||
BuildRequires: libwrap-devel
|
BuildRequires: libwrap-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: gcc-go
|
BuildRequires: gcc-go
|
||||||
@ -83,11 +79,9 @@ The libaudit-devel package contains the header files needed for developing appli
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#%patch0 -p1
|
#autoreconf -v --install
|
||||||
#%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#autoreconf -v --install
|
|
||||||
%configure \
|
%configure \
|
||||||
--with-prelude \
|
--with-prelude \
|
||||||
--with-libwrap \
|
--with-libwrap \
|
||||||
@ -113,17 +107,10 @@ mkdir -p %{buildroot}%{_localstatedir}/log/audit
|
|||||||
%makeinstall \
|
%makeinstall \
|
||||||
initdir=%{_unitdir}
|
initdir=%{_unitdir}
|
||||||
|
|
||||||
#rm -f %{buildroot}%{python_sitearch}/_audit.a
|
|
||||||
#rm -f %{buildroot}%{python_sitearch}/_audit.la
|
|
||||||
#rm -f %{buildroot}%{python_sitearch}/_auparse.a
|
|
||||||
#rm -f %{buildroot}%{python_sitearch}/_auparse.la
|
|
||||||
#rm -f %{buildroot}%{python_sitearch}/auparse.a
|
|
||||||
#rm -f %{buildroot}%{python_sitearch}/auparse.la
|
|
||||||
|
|
||||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/audit/rules.d
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/audit/rules.d
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
#make check
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -168,13 +155,6 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/audit-stop.rules
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/audit-stop.rules
|
||||||
%dir %{_sysconfdir}/audit/rules.d
|
%dir %{_sysconfdir}/audit/rules.d
|
||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/auditd.conf
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/auditd.conf
|
||||||
%dir %{_datadir}/audit/sample-rules
|
|
||||||
%{_datadir}/audit/sample-rules/*.rules
|
|
||||||
%{_datadir}/audit/sample-rules/README-rules
|
|
||||||
%attr(644,root,root) %{_unitdir}/auditd.service
|
|
||||||
%dir %{_libexecdir}/initscripts/legacy-actions/auditd
|
|
||||||
%{_libexecdir}/initscripts/legacy-actions/auditd/*
|
|
||||||
%attr(750,root,root) %dir %{_localstatedir}/log/audit
|
|
||||||
%attr(750,root,root) %{_sbindir}/audispd-zos-remote
|
%attr(750,root,root) %{_sbindir}/audispd-zos-remote
|
||||||
%attr(750,root,root) %{_sbindir}/audisp-*
|
%attr(750,root,root) %{_sbindir}/audisp-*
|
||||||
%attr(750,root,root) %{_sbindir}/auditctl
|
%attr(750,root,root) %{_sbindir}/auditctl
|
||||||
@ -182,11 +162,14 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|||||||
%attr(750,root,root) %{_sbindir}/augenrules
|
%attr(750,root,root) %{_sbindir}/augenrules
|
||||||
%attr(750,root,root) %{_sbindir}/aureport
|
%attr(750,root,root) %{_sbindir}/aureport
|
||||||
%attr(750,root,root) %{_sbindir}/ausearch
|
%attr(750,root,root) %{_sbindir}/ausearch
|
||||||
%attr(750,root,root) %{_sbindir}/autrace
|
|
||||||
%attr(755,root,root) %{_bindir}/aulast
|
%attr(755,root,root) %{_bindir}/aulast
|
||||||
%attr(755,root,root) %{_bindir}/aulastlog
|
%attr(755,root,root) %{_bindir}/aulastlog
|
||||||
%attr(755,root,root) %{_bindir}/ausyscall
|
%attr(755,root,root) %{_bindir}/ausyscall
|
||||||
%attr(750,root,root) %{_bindir}/auvirt
|
%attr(644,root,root) %{_unitdir}/auditd.service
|
||||||
|
%{_unitdir}/audit-rules.service
|
||||||
|
%dir %{_datadir}/audit-rules
|
||||||
|
%{_datadir}/audit-rules/*
|
||||||
|
%attr(750,root,root) %dir %{_localstatedir}/log/audit
|
||||||
%{_mandir}/man5/auditd.conf.5*
|
%{_mandir}/man5/auditd.conf.5*
|
||||||
%{_mandir}/man5/ausearch-expression.5*
|
%{_mandir}/man5/ausearch-expression.5*
|
||||||
%{_mandir}/man5/auditd-plugins.5*
|
%{_mandir}/man5/auditd-plugins.5*
|
||||||
@ -204,21 +187,22 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|||||||
%{_mandir}/man8/aureport.8*
|
%{_mandir}/man8/aureport.8*
|
||||||
%{_mandir}/man8/ausearch.8*
|
%{_mandir}/man8/ausearch.8*
|
||||||
%{_mandir}/man8/ausyscall.8*
|
%{_mandir}/man8/ausyscall.8*
|
||||||
%{_mandir}/man8/autrace.8*
|
|
||||||
%{_mandir}/man8/auvirt.8*
|
|
||||||
|
|
||||||
%files -n lib%{name}
|
%files -n lib%{name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/libaudit.conf
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/libaudit.conf
|
||||||
%{_libdir}/libaudit.so.*
|
%{_libdir}/libaudit.so.*
|
||||||
%{_libdir}/libauparse.so.*
|
%{_libdir}/libauparse.so.*
|
||||||
%{_libexecdir}/audit-functions
|
%dir %{_libexecdir}/initscripts/legacy-actions/auditd
|
||||||
|
%{_libexecdir}/initscripts/legacy-actions/auditd/*
|
||||||
%doc AUTHORS COPYING
|
%doc AUTHORS COPYING
|
||||||
|
|
||||||
%files -n lib%{name}-devel
|
%files -n lib%{name}-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/auparse-defs.h
|
%{_includedir}/auparse-defs.h
|
||||||
%{_includedir}/auparse.h
|
%{_includedir}/auparse.h
|
||||||
|
%{_includedir}/audit-records.h
|
||||||
|
%{_includedir}/audit_logging.h
|
||||||
%{_includedir}/libaudit.h
|
%{_includedir}/libaudit.h
|
||||||
%{_libdir}/libaudit.so
|
%{_libdir}/libaudit.so
|
||||||
%{_libdir}/libauparse.so
|
%{_libdir}/libauparse.so
|
||||||
@ -238,20 +222,17 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|||||||
%{_libdir}/libaudit.a
|
%{_libdir}/libaudit.a
|
||||||
%{_libdir}/libauparse.a
|
%{_libdir}/libauparse.a
|
||||||
|
|
||||||
#%files -n python-audit
|
|
||||||
#%defattr(-,root,root)
|
|
||||||
#%{python_sitearch}/_audit.*
|
|
||||||
#%{python_sitearch}/audit.py*
|
|
||||||
#%{python_sitearch}/auparse.*
|
|
||||||
|
|
||||||
%files -n python-audit-py3
|
%files -n python-audit-py3
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python3_sitelib}/_audit.*
|
%{python3_sitearch}/_audit.*
|
||||||
%{python3_sitelib}/audit.py
|
%{python3_sitearch}/audit.py
|
||||||
%{python3_sitelib}/__pycache__/audit.cpython-*.pyc
|
%{python3_sitearch}/__pycache__/audit.cpython-*.pyc
|
||||||
%{python3_sitelib}/auparse.*
|
%{python3_sitearch}/auparse.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 07 2024 Automatic Build System <autodist@openmamba.org> 4.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Mon Aug 07 2023 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
|
* Mon Aug 07 2023 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user