Compare commits
10 Commits
2.6.7-3mam
...
2.8.4-4mam
Author | SHA1 | Date | |
---|---|---|---|
587f520e6f | |||
dcf4e6fe81 | |||
da428f1075 | |||
4d05df0530 | |||
1a49eac0e9 | |||
56434d4725 | |||
11c4ce3056 | |||
02b4ea2be3 | |||
|
d3cf58aae3 | ||
9bb885967b |
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
|
||||
}
|
69
audit.spec
69
audit.spec
@@ -1,6 +1,6 @@
|
||||
Name: audit
|
||||
Version: 2.6.7
|
||||
Release: 3mamba
|
||||
Version: 2.8.4
|
||||
Release: 4mamba
|
||||
Summary: User space tools for kernel auditing
|
||||
Group: System/Tools
|
||||
Vendor: openmamba
|
||||
@@ -8,19 +8,23 @@ Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://people.redhat.com/sgrubb/audit
|
||||
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
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: libe2fs-devel
|
||||
BuildRequires: libffi-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: libgmp-devel
|
||||
BuildRequires: libgnutls-devel
|
||||
BuildRequires: libgpg-error-devel
|
||||
BuildRequires: libidn-devel
|
||||
BuildRequires: libkrb5-devel
|
||||
BuildRequires: libltdl-devel
|
||||
BuildRequires: libnettle-devel
|
||||
BuildRequires: libnsl-devel
|
||||
BuildRequires: libopenldap-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libp11-kit-devel
|
||||
@@ -28,9 +32,10 @@ BuildRequires: libprelude-devel
|
||||
BuildRequires: libpython-devel
|
||||
BuildRequires: libsasl2-devel
|
||||
BuildRequires: libtasn1-devel
|
||||
BuildRequires: libtirpc-devel
|
||||
BuildRequires: libunistring-devel
|
||||
BuildRequires: libwrap-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: trousers-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: gcc-go
|
||||
BuildRequires: libgo-devel
|
||||
@@ -62,7 +67,7 @@ This package contains libraries and header files for developing applications tha
|
||||
%package -n lib%{name}-static
|
||||
Group: Development/Libraries
|
||||
Summary: Static libraries for %{name}
|
||||
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
|
||||
|
||||
%description -n lib%{name}-static
|
||||
This package contains the static libraries needed for developing applications that need to use static %{name} framework libraries.
|
||||
@@ -70,7 +75,7 @@ This package contains the static libraries needed for developing applications th
|
||||
%package -n python-audit
|
||||
Summary: Python bindings for libaudit
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
|
||||
%description -n python-audit
|
||||
The python-audit package contains the bindings so that libaudit and libauparse can be used by python.
|
||||
@@ -79,7 +84,7 @@ The python-audit package contains the bindings so that libaudit and libauparse c
|
||||
Group: Development/Libraries
|
||||
Summary: Python3 bindings to %{name}
|
||||
Requires: python3
|
||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
|
||||
%description -n python-audit-py3
|
||||
The python-audit package containts Python 3 bindings to %{name}.
|
||||
@@ -89,7 +94,7 @@ The libaudit-devel package contains the header files needed for developing appli
|
||||
Group: System/Tools
|
||||
Summary: Plugins for the audit event dispatcher
|
||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: audit = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: libaudit = %{?epoch:%epoch:}%{version}-%{release}
|
||||
#Requires: openldap
|
||||
|
||||
%description plugins
|
||||
@@ -98,6 +103,7 @@ The audispd-plugins package provides plugins for the real-time interface to the
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
#autoreconf -v --install
|
||||
@@ -125,6 +131,8 @@ 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
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
@@ -164,6 +172,7 @@ 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
|
||||
%attr(750,root,root) %dir %{_sysconfdir}/audit
|
||||
%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/auditd.conf
|
||||
%attr(644,root,root) %{_unitdir}/auditd.service
|
||||
@@ -204,7 +213,7 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||
%{_libdir}/libaudit.so.*
|
||||
%{_libdir}/libauparse.so.*
|
||||
%{_mandir}/man5/libaudit.conf.5*
|
||||
%doc AUTHORS COPYING
|
||||
#%doc AUTHORS COPYING
|
||||
|
||||
%files -n lib%{name}-devel
|
||||
%defattr(-,root,root)
|
||||
@@ -220,8 +229,8 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||
%{_prefix}/lib/golang/src/pkg/redhat.com/audit/audit.go
|
||||
%{_datadir}/aclocal/audit.m4
|
||||
%{_mandir}/man3/*.3.gz
|
||||
%doc contrib/skeleton.c contrib/plugin
|
||||
%doc ChangeLog README THANKS TODO
|
||||
#%doc contrib/skeleton.c contrib/plugin
|
||||
#%doc ChangeLog README THANKS TODO
|
||||
|
||||
%files -n lib%{name}-static
|
||||
%defattr(-,root,root)
|
||||
@@ -238,6 +247,8 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||
%defattr(-,root,root)
|
||||
%{python3_sitearch}/_audit.*
|
||||
%{python3_sitearch}/audit.py
|
||||
%{python3_sitearch}/__pycache__/audit.cpython-33.pyc
|
||||
%{python3_sitearch}/__pycache__/audit.cpython-33.pyo
|
||||
%{python3_sitearch}/auparse.*
|
||||
|
||||
%files plugins
|
||||
@@ -259,6 +270,42 @@ find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||
%{_mandir}/man8/audisp-remote.8*
|
||||
|
||||
%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
|
||||
- rebuilt with root installatiion prefix (/bin, /sbin)
|
||||
|
||||
* Tue Apr 11 2017 Automatic Build System <autodist@mambasoft.it> 2.7.5-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Apr 10 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.7.4-1mamba
|
||||
- update to 2.7.4
|
||||
|
||||
* Fri Oct 07 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.7-4mamba
|
||||
- libaudit-static: require libaudit-devel instead of audit-devel
|
||||
|
||||
* Thu Sep 22 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.7-3mamba
|
||||
- specfile was not renamed (webbuild rename function does this correctly)
|
||||
|
||||
|
@@ -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