Compare commits
6 Commits
2.7.5-2mam
...
2.8.4-4mam
Author | SHA1 | Date | |
---|---|---|---|
587f520e6f | |||
dcf4e6fe81 | |||
da428f1075 | |||
4d05df0530 | |||
1a49eac0e9 | |||
56434d4725 |
26
audit-2.8.4-rundir.patch
Normal file
26
audit-2.8.4-rundir.patch
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
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;
|
61
audit-2.8.4-usrsbin.patch
Normal file
61
audit-2.8.4-usrsbin.patch
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
diff -Nru audit-2.8.4.orig/init.d/auditd.conf audit-2.8.4/init.d/auditd.conf
|
||||||
|
--- audit-2.8.4.orig/init.d/auditd.conf 2018-05-21 19:38:08.000000000 +0200
|
||||||
|
+++ audit-2.8.4/init.d/auditd.conf 2019-01-05 08:37:15.638139602 +0100
|
||||||
|
@@ -13,7 +13,7 @@
|
||||||
|
num_logs = 5
|
||||||
|
priority_boost = 4
|
||||||
|
disp_qos = lossy
|
||||||
|
-dispatcher = /sbin/audispd
|
||||||
|
+dispatcher = /usr/sbin/audispd
|
||||||
|
name_format = NONE
|
||||||
|
##name = mydomain
|
||||||
|
max_log_file_action = ROTATE
|
||||||
|
diff -Nru audit-2.8.4.orig/init.d/auditd.cron audit-2.8.4/init.d/auditd.cron
|
||||||
|
--- audit-2.8.4.orig/init.d/auditd.cron 2018-05-21 19:38:08.000000000 +0200
|
||||||
|
+++ audit-2.8.4/init.d/auditd.cron 2019-01-05 08:39:37.092758696 +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 -Nru audit-2.8.4.orig/init.d/auditd.service audit-2.8.4/init.d/auditd.service
|
||||||
|
--- audit-2.8.4.orig/init.d/auditd.service 2018-06-19 20:16:43.000000000 +0200
|
||||||
|
+++ audit-2.8.4/init.d/auditd.service 2019-01-05 08:38:06.846363989 +0100
|
||||||
|
@@ -13,16 +13,16 @@
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
-PIDFile=/var/run/auditd.pid
|
||||||
|
-ExecStart=/sbin/auditd
|
||||||
|
+PIDFile=/run/auditd.pid
|
||||||
|
+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
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
diff -Nru audit-2.8.4.orig/init.d/augenrules audit-2.8.4/init.d/augenrules
|
||||||
|
--- audit-2.8.4.orig/init.d/augenrules 2018-05-21 19:38:08.000000000 +0200
|
||||||
|
+++ audit-2.8.4/init.d/augenrules 2019-01-05 08:39:12.764652379 +0100
|
||||||
|
@@ -39,7 +39,7 @@
|
||||||
|
|
||||||
|
try_load() {
|
||||||
|
if [ $LoadRules -eq 1 ] ; then
|
||||||
|
- /sbin/auditctl -R ${DestinationFile}
|
||||||
|
+ /usr/sbin/auditctl -R ${DestinationFile}
|
||||||
|
RETVAL=$?
|
||||||
|
fi
|
||||||
|
}
|
75
audit.spec
75
audit.spec
@@ -1,6 +1,6 @@
|
|||||||
Name: audit
|
Name: audit
|
||||||
Version: 2.7.5
|
Version: 2.8.4
|
||||||
Release: 2mamba
|
Release: 4mamba
|
||||||
Summary: User space tools for kernel auditing
|
Summary: User space tools for kernel auditing
|
||||||
Group: System/Tools
|
Group: System/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@@ -8,19 +8,23 @@ Distribution: openmamba
|
|||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://people.redhat.com/sgrubb/audit
|
URL: http://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: libaudit-2.6.6-usrsbin.patch
|
Patch0: audit-2.8.4-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: libffi-devel
|
BuildRequires: libffi-devel
|
||||||
BuildRequires: libgcrypt-devel
|
BuildRequires: libgcrypt-devel
|
||||||
BuildRequires: libgmp-devel
|
BuildRequires: libgmp-devel
|
||||||
BuildRequires: libgnutls-devel
|
BuildRequires: libgnutls-devel
|
||||||
BuildRequires: libgpg-error-devel
|
BuildRequires: libgpg-error-devel
|
||||||
|
BuildRequires: libidn-devel
|
||||||
BuildRequires: libkrb5-devel
|
BuildRequires: libkrb5-devel
|
||||||
BuildRequires: libltdl-devel
|
BuildRequires: libltdl-devel
|
||||||
BuildRequires: libnettle-devel
|
BuildRequires: libnettle-devel
|
||||||
|
BuildRequires: libnsl-devel
|
||||||
BuildRequires: libopenldap-devel
|
BuildRequires: libopenldap-devel
|
||||||
BuildRequires: libopenssl-devel
|
BuildRequires: libopenssl-devel
|
||||||
BuildRequires: libp11-kit-devel
|
BuildRequires: libp11-kit-devel
|
||||||
@@ -28,9 +32,10 @@ BuildRequires: libprelude-devel
|
|||||||
BuildRequires: libpython-devel
|
BuildRequires: libpython-devel
|
||||||
BuildRequires: libsasl2-devel
|
BuildRequires: libsasl2-devel
|
||||||
BuildRequires: libtasn1-devel
|
BuildRequires: libtasn1-devel
|
||||||
|
BuildRequires: libtirpc-devel
|
||||||
|
BuildRequires: libunistring-devel
|
||||||
BuildRequires: libwrap-devel
|
BuildRequires: libwrap-devel
|
||||||
BuildRequires: libz-devel
|
BuildRequires: libz-devel
|
||||||
BuildRequires: trousers-devel
|
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: gcc-go
|
BuildRequires: gcc-go
|
||||||
BuildRequires: libgo-devel
|
BuildRequires: libgo-devel
|
||||||
@@ -97,7 +102,8 @@ The audispd-plugins package provides plugins for the real-time interface to the
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#autoreconf -v --install
|
#autoreconf -v --install
|
||||||
@@ -107,9 +113,7 @@ The audispd-plugins package provides plugins for the real-time interface to the
|
|||||||
--enable-gssapi-krb5=yes \
|
--enable-gssapi-krb5=yes \
|
||||||
--with-libcap-ng=yes \
|
--with-libcap-ng=yes \
|
||||||
--with-python=yes \
|
--with-python=yes \
|
||||||
--enable-systemd=yes \
|
--enable-systemd=yes
|
||||||
--bindir=/bin \
|
|
||||||
--sbindir=/sbin
|
|
||||||
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
@@ -127,6 +131,8 @@ rm -f %{buildroot}%{python_sitearch}/_auparse.la
|
|||||||
rm -f %{buildroot}%{python_sitearch}/auparse.a
|
rm -f %{buildroot}%{python_sitearch}/auparse.a
|
||||||
rm -f %{buildroot}%{python_sitearch}/auparse.la
|
rm -f %{buildroot}%{python_sitearch}/auparse.la
|
||||||
|
|
||||||
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/audit/rules.d
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
@@ -166,23 +172,24 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/syslog.conf
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/syslog.conf
|
||||||
%attr(750,root,root) %dir %{_sysconfdir}/audit
|
%attr(750,root,root) %dir %{_sysconfdir}/audit
|
||||||
%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
|
||||||
#%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/rules.d/audit.rules
|
#%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/rules.d/audit.rules
|
||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/auditd.conf
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit/auditd.conf
|
||||||
%attr(644,root,root) %{_unitdir}/auditd.service
|
%attr(644,root,root) %{_unitdir}/auditd.service
|
||||||
%dir %{_libexecdir}/initscripts/legacy-actions/auditd
|
%dir %{_libexecdir}/initscripts/legacy-actions/auditd
|
||||||
%{_libexecdir}/initscripts/legacy-actions/auditd/*
|
%{_libexecdir}/initscripts/legacy-actions/auditd/*
|
||||||
%attr(750,root,root) %dir %{_localstatedir}/log/audit
|
%attr(750,root,root) %dir %{_localstatedir}/log/audit
|
||||||
%attr(750,root,root) /sbin/audispd
|
%attr(750,root,root) %{_sbindir}/audispd
|
||||||
%attr(750,root,root) /sbin/auditctl
|
%attr(750,root,root) %{_sbindir}/auditctl
|
||||||
%attr(750,root,root) /sbin/auditd
|
%attr(750,root,root) %{_sbindir}/auditd
|
||||||
%attr(750,root,root) /sbin/augenrules
|
%attr(750,root,root) %{_sbindir}/augenrules
|
||||||
%attr(750,root,root) /sbin/aureport
|
%attr(750,root,root) %{_sbindir}/aureport
|
||||||
%attr(750,root,root) /sbin/ausearch
|
%attr(750,root,root) %{_sbindir}/ausearch
|
||||||
%attr(750,root,root) /sbin/autrace
|
%attr(750,root,root) %{_sbindir}/autrace
|
||||||
%attr(755,root,root) /bin/aulast
|
%attr(755,root,root) %{_bindir}/aulast
|
||||||
%attr(755,root,root) /bin/aulastlog
|
%attr(755,root,root) %{_bindir}/aulastlog
|
||||||
%attr(755,root,root) /bin/ausyscall
|
%attr(755,root,root) %{_bindir}/ausyscall
|
||||||
%attr(750,root,root) /bin/auvirt
|
%attr(750,root,root) %{_bindir}/auvirt
|
||||||
%dir %{_prefix}/lib/golang/src/pkg/redhat.com/audit
|
%dir %{_prefix}/lib/golang/src/pkg/redhat.com/audit
|
||||||
%{_mandir}/man5/audispd.conf.5*
|
%{_mandir}/man5/audispd.conf.5*
|
||||||
%{_mandir}/man5/auditd.conf.5*
|
%{_mandir}/man5/auditd.conf.5*
|
||||||
@@ -252,9 +259,9 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/au-prelude.conf
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/au-prelude.conf
|
||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/audisp-remote.conf
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/audisp-remote.conf
|
||||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/au-remote.conf
|
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/audisp/plugins.d/au-remote.conf
|
||||||
%attr(750,root,root) /sbin/audispd-zos-remote
|
%attr(750,root,root) %{_sbindir}/audispd-zos-remote
|
||||||
%attr(750,root,root) /sbin/audisp-prelude
|
%attr(750,root,root) %{_sbindir}/audisp-prelude
|
||||||
%attr(750,root,root) /sbin/audisp-remote
|
%attr(750,root,root) %{_sbindir}/audisp-remote
|
||||||
%{_mandir}/man5/zos-remote.conf.5*
|
%{_mandir}/man5/zos-remote.conf.5*
|
||||||
%{_mandir}/man8/audispd-zos-remote.8*
|
%{_mandir}/man8/audispd-zos-remote.8*
|
||||||
%{_mandir}/man5/audisp-prelude.conf.5*
|
%{_mandir}/man5/audisp-prelude.conf.5*
|
||||||
@@ -263,6 +270,30 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|||||||
%{_mandir}/man8/audisp-remote.8*
|
%{_mandir}/man8/audisp-remote.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-4mamba
|
||||||
|
- apply path for /usr/sbin and rundir under /run
|
||||||
|
|
||||||
|
* Fri Jan 04 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-3mamba
|
||||||
|
- other fix for auditd.service /usr/sbin path instead of /sbin
|
||||||
|
|
||||||
|
* Sun Dec 30 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-2mamba
|
||||||
|
- install binaries under /usr/sbin and /usr/bin
|
||||||
|
|
||||||
|
* Wed Sep 12 2018 Automatic Build System <autodist@mambasoft.it> 2.8.4-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Thu Mar 15 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.3-1mamba
|
||||||
|
- update to 2.8.3
|
||||||
|
|
||||||
|
* Tue Dec 19 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.2-1mamba
|
||||||
|
- update to 2.8.2
|
||||||
|
|
||||||
|
* Sat Nov 18 2017 Automatic Build System <autodist@mambasoft.it> 2.8.1-1mamba
|
||||||
|
- automatic update by autodist
|
||||||
|
|
||||||
|
* Tue May 02 2017 Automatic Build System <autodist@mambasoft.it> 2.7.6-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Fri Apr 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.5-2mamba
|
* Fri Apr 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.5-2mamba
|
||||||
- rebuilt with root installatiion prefix (/bin, /sbin)
|
- rebuilt with root installatiion prefix (/bin, /sbin)
|
||||||
|
|
||||||
|
@@ -1,30 +0,0 @@
|
|||||||
diff -Nru audit-2.4.4.orig/init.d/auditd.conf audit-2.4.4/init.d/auditd.conf
|
|
||||||
--- audit-2.4.4.orig/init.d/auditd.conf 2015-08-13 22:56:25.000000000 +0200
|
|
||||||
+++ audit-2.4.4/init.d/auditd.conf 2015-12-01 19:54:24.403584662 +0100
|
|
||||||
@@ -10,7 +10,7 @@
|
|
||||||
freq = 20
|
|
||||||
num_logs = 5
|
|
||||||
disp_qos = lossy
|
|
||||||
-dispatcher = /sbin/audispd
|
|
||||||
+dispatcher = /usr/sbin/audispd
|
|
||||||
name_format = NONE
|
|
||||||
##name = mydomain
|
|
||||||
max_log_file = 6
|
|
||||||
--- audit-2.6.6/init.d/auditd.service.orig 2016-08-11 19:51:33.493168550 +0200
|
|
||||||
+++ audit-2.6.6/init.d/auditd.service 2016-08-12 00:43:16.758055860 +0200
|
|
||||||
@@ -9,12 +9,12 @@
|
|
||||||
Documentation=man:auditd(8) https://people.redhat.com/sgrubb/audit/
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
-ExecStart=/sbin/auditd -n
|
|
||||||
+ExecStart=/usr/sbin/auditd -n
|
|
||||||
## 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
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
# 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
|
|
Reference in New Issue
Block a user