Search
SailfishOS Open Build Service
>
Projects
>
home:Wikiwide
:
OpenFOAM
>
audit-devel
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 29
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
audit.spec
@@ -0,0 +1,1087 @@ +# +# spec file for package audit +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: audit +Version: 2.8.5 +Release: 1.2 +Summary: Linux kernel audit subsystem utilities +License: GPL-2.0-or-later +Group: System/Monitoring +URL: http://people.redhat.com/sgrubb/audit/ +Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz +Source1: baselibs.conf +Source2: README-BEFORE-ADDING-PATCHES +BuildRequires: autoconf >= 2.12 +BuildRequires: gcc-c++ +BuildRequires: kernel-headers >= 2.6.30 +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: tcpd-devel +Requires: %{name}-libs = %{version} + +%description +The audit package contains the user space utilities for storing and +processing the records generated by the audit subsystem in the +Linux kernel. + +%package -n libaudit1 +Summary: Library for interfacing with the kernel audit subsystem +License: LGPL-2.1-or-later +Group: System/Libraries +Obsoletes: %{name}-libs < 2.0.4 +Provides: %{name}-libs = %{version} + +%description -n libaudit1 +The libaudit package contains the shared libraries needed for +applications to use the audit framework. + +%package -n libauparse0 +Summary: Library for parsing and interpreting audit events +License: LGPL-2.1-or-later +Group: System/Libraries + +%description -n libauparse0 +The libauparse package contains the shared libraries needed to +parse audit records. + +%package -n audit-devel +Summary: Header files for libaudit +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +Requires: libaudit1 = %{version} +Requires: libauparse0 = %{version} + +%description -n audit-devel +The audit-devel package contains the header files +needed for developing applications that need to use the audit framework +libraries. + +%prep +%setup -q + +%build +autoreconf -fi +export CFLAGS="%{optflags} -fno-strict-aliasing" +export CXXFLAGS="$CFLAGS" +export LDFLAGS="-Wl,-z,relro,-z,now" +# no krb support (omit --enable-gssapi-krb5=yes), see audit-no-gss.patch +%configure \ + --enable-systemd \ + --libexecdir=%{_libexecdir}/%{name} \ + --with-apparmor \ + --with-libwrap \ + --without-libcap-ng \ + --disable-static \ + --without-python \ + --disable-zos-remote +make %{?_smp_mflags} +# make %{?_smp_mflags} -C lib +# make %{?_smp_mflags} -C auparse +# make %{?_smp_mflags} -C docs + +%install +# %make_install +# %make_install -C lib +# %make_install -C auparse +# %make_install -C docs +make DESTDIR=%{buildroot} install -C lib +make DESTDIR=%{buildroot} install -C auparse +make DESTDIR=%{buildroot} install -C docs +rm -rf %{buildroot}/%{_mandir}/man[578] +mkdir -p %{buildroot}%{_sysconfdir} +mkdir -p %{buildroot}/%{_includedir} +mkdir -p %{buildroot}/%{_mandir}/man5 +# We manually install this since Makefile doesn't +install -m 0644 lib/libaudit.h %{buildroot}/%{_includedir} +install -D -m 0644 ./m4/audit.m4 %{buildroot}%{_datadir}/aclocal/audit.m4 +# Install libaudit.conf files by hand +install -m 0644 docs/libaudit.conf.5 %{buildroot}/%{_mandir}/man5 +install -m 0644 init.d/libaudit.conf %{buildroot}%{_sysconfdir} + +find %{buildroot} -type f -name "*.la" -delete -print + +%check +make %{?_smp_mflags} check -C lib +make %{?_smp_mflags} check -C auparse + +%post -n libaudit1 -p /sbin/ldconfig +%post -n libauparse0 -p /sbin/ldconfig +%postun -n libaudit1 -p /sbin/ldconfig +%postun -n libauparse0 -p /sbin/ldconfig + +%files -n libaudit1 +%{_libdir}/libaudit.so.* +%config(noreplace) %attr(640,root,root) %{_sysconfdir}/libaudit.conf +%{_mandir}/man5/libaudit.conf.5%{ext_man} + +%files -n libauparse0 +%{_libdir}/libauparse.so.* + +%files -n audit-devel +%doc contrib/skeleton.c contrib/plugin +%{_libdir}/libaudit.so +%{_libdir}/libauparse.so +%{_includedir}/libaudit.h +%{_includedir}/auparse.h +%{_includedir}/auparse-defs.h +%{_mandir}/man3/* +%{_datadir}/aclocal/audit.m4 +%{_libdir}/pkgconfig/audit.pc +%{_libdir}/pkgconfig/auparse.pc + +%changelog +* Mon Jan 13 2020 Tony Jones <tonyj@suse.com> +- Update to version 2.6.5: + * Fix segfault on shutdown + * Fix hang on startup (#1587995) + * Add sleep to script to dump state so file is ready when needed + * Add auparse_normalizer support for SOFTWARE_UPDATE event + * Mark netlabel events as simple events so that get processed quicker + * When audispd is reconfiguring, only SIGHUP plugins with valid pid (#1614833) + * Add 30-ospp-v42.rules to meet new Common Criteria requirements + * Update lookup tables for the 4.18 kernel + * In aureport, fix segfault in file report + * Add auparse_normalizer support for labeled networking events + * Fix memory leak in audisp-remote plugin when using krb5 transport. (#1622194) + * Event aging is off by a second + * In ausearch/auparse, correct event ordering to process oldest first + * auparse_reset was not clearing everything it should + * Add support for AUDIT_MAC_CALIPSO_ADD, AUDIT_MAC_CALIPSO_DEL events + * In ausearch/report, lightly parse selinux portion of USER_AVC events + * In ausearch/report, limit record size when malformed + * In auditd, fix extract_type function for network originating events + * In auditd, calculate right size and location for network originating events + * Treat all network originating events as VER2 so dispatcher doesn't format it + * In audisp-remote do an initial connection attempt (#1625156) + * In auditd, allow expression of space left as a percentage (#1650670) + * On PPC64LE systems, only allow 64 bit rules (#1462178) + * Make some parts of auditd state report optional based on config + * Fix ausearch when checkpointing a single file (Burn Alting) + * Fix scripting in 31-privileged.rules wrt filecap (#1662516) + * In ausearch, do not checkpt if stdin is input source + * In libev, remove __cold__ attribute for functions to allow proper hardening + * Add tests to configure.ac for openldap support + * Make systemd support files use /run rather than /var/run (Christian Hesse) + * Fix minor memory leak in auditd kerberos credentials code + * Fix auditd regression where keep_logs is limited by rotate_logs 2 file test + * In ausearch/report fix --end to use midnight time instead of now (#1671338) +- Remote zos building is now a configurable option. + It should be disabled in audit (and left enabled in audit-secondary). +* Thu Mar 21 2019 Jan Engelhardt <jengelh@inai.de> +- Make use of some %%make_install. +* Sat Jun 23 2018 antoine.belvire@opensuse.org +- Update to version 2.8.4: + * Generate checkpoint file even when not results are returned + (Burn Alting). + * Fix log file creation when file logging is disabled entirely + (Vlad Glagolev). + * Use SIGCONT to dump auditd internal state (rh#1504251). + * Fix parsing of virtual timestamp fields in ausearch_expression + (rh#1515903). + * Fix parsing of uid & success for ausearch. + * Hide lru symbols in auparse. + * Fix aureport summary time range reporting. + * Allow unlimited retries on startup for remote logging.