]>
Commit | Line | Data |
---|---|---|
ce14e998 | 1 | # |
e5a8c0d8 | 2 | # Conditional build: |
49caa03e | 3 | %bcond_without kerberos5 # Kerberos V support via heimdal |
ffa39469 | 4 | %bcond_without prelude # prelude audisp plugin |
49caa03e | 5 | %bcond_without golang # Go language bindings |
659527ec JB |
6 | %bcond_without python # Python bindings (any) |
7 | %bcond_without python3 # Python 3 bindings | |
49caa03e | 8 | %bcond_without zos_remote # zos-remote audisp plugin (LDAP dep) |
f99a4738 JR |
9 | |
10 | %ifnarch %{ix86} %{x8664} %{arm} | |
11 | %undefine with_golang | |
12 | %endif | |
13 | ||
659527ec JB |
14 | %if %{without python} |
15 | %undefine with_python3 | |
16 | %endif | |
54697230 | 17 | Summary: User space tools for 2.6 kernel auditing |
7f0a1e1e | 18 | Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika do audytu jąder 2.6 |
54697230 | 19 | Name: audit |
0167336b JB |
20 | Version: 2.5.2 |
21 | Release: 1 | |
ab8f94cb | 22 | License: GPL v2+ |
54697230 JB |
23 | Group: Daemons |
24 | Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz | |
0167336b | 25 | # Source0-md5: bfc332d35b27121f105dd34ce35b6f0a |
de2a21fd JB |
26 | Source2: %{name}d.init |
27 | Source3: %{name}d.sysconfig | |
80475ae6 | 28 | Patch0: %{name}-install.patch |
b0722891 | 29 | Patch1: %{name}-m4.patch |
61d763d9 | 30 | Patch2: %{name}-nolibs.patch |
220b3c30 | 31 | Patch3: %{name}-no_zos_remote.patch |
ffa39469 | 32 | Patch4: %{name}-systemd-notonly.patch |
0bd7ba4a | 33 | Patch5: %{name}-am.patch |
738da8d6 JR |
34 | Patch6: %{name}-no-refusemanualstop.patch |
35 | Patch7: %{name}-cronjob.patch | |
23c6312b | 36 | Patch8: golang-paths.patch |
54697230 JB |
37 | URL: http://people.redhat.com/sgrubb/audit/ |
38 | BuildRequires: autoconf >= 2.59 | |
10583781 | 39 | BuildRequires: automake >= 1:1.9 |
10583781 | 40 | BuildRequires: glibc-headers >= 6:2.3.6 |
659527ec | 41 | %{?with_golang:BuildRequires: golang >= 1.4} |
220b3c30 | 42 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
693afa1c | 43 | BuildRequires: libcap-ng-devel |
526a1f46 | 44 | %{?with_prelude:BuildRequires: libprelude-devel} |
54697230 | 45 | BuildRequires: libtool |
61d763d9 | 46 | BuildRequires: libwrap-devel |
d80f3483 | 47 | BuildRequires: linux-libc-headers >= 7:2.6.30 |
220b3c30 | 48 | %{?with_zos_remote:BuildRequires: openldap-devel} |
57f09668 | 49 | %if %{with python} |
84214962 | 50 | BuildRequires: python-devel >= 1:2.5 |
9ee6c1ce | 51 | BuildRequires: rpm-pythonprov |
7e695d35 | 52 | BuildRequires: swig-python |
57f09668 | 53 | %endif |
2d0ad02a JR |
54 | %if %{with python3} |
55 | BuildRequires: python3-devel | |
56 | BuildRequires: rpm-pythonprov | |
57 | BuildRequires: swig-python | |
58 | %endif | |
9a3b9076 | 59 | BuildRequires: rpmbuild(macros) >= 1.623 |
ab8f94cb | 60 | BuildRequires: sed >= 4.0 |
54697230 | 61 | Requires(post,preun): /sbin/chkconfig |
195529ba | 62 | Requires(post,preun,postun): systemd-units >= 38 |
54697230 | 63 | Requires: %{name}-libs = %{version}-%{release} |
96102055 | 64 | Requires: rc-scripts |
195529ba | 65 | Requires: systemd-units >= 38 |
526a1f46 | 66 | Obsoletes: audit-audispd-plugins |
7ede5762 | 67 | Obsoletes: audit-systemd |
54697230 JB |
68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
69 | ||
70 | %define _sbindir /sbin | |
ab8f94cb JB |
71 | # use /lib, because this path is put in /usr/share/.../settings.py |
72 | %define _libexecdir %{_prefix}/lib | |
54697230 JB |
73 | |
74 | %description | |
75 | The audit package contains the user space utilities for storing and | |
76 | processing the audit records generate by the audit subsystem in the | |
77 | Linux 2.6 kernel. | |
78 | ||
b27e8f95 JR |
79 | %description -l pl.UTF-8 |
80 | Ten pakiet zawiera narzędzia przestrzeni użytkownika do przechowywania | |
81 | i przetwarzania rekordów audytu generowanych przez podsystem audytu w | |
82 | jądrach Linuksa 2.6. | |
54697230 JB |
83 | |
84 | %package libs | |
5a56b716 | 85 | Summary: Dynamic audit libraries |
7f0a1e1e | 86 | Summary(pl.UTF-8): Biblioteki dynamiczne audit |
ab8f94cb | 87 | License: LGPL v2.1+ |
54697230 JB |
88 | Group: Libraries |
89 | ||
90 | %description libs | |
5a56b716 | 91 | The audit-libs package contains the dynamic libraries needed for |
54697230 JB |
92 | applications to use the audit framework. |
93 | ||
b27e8f95 | 94 | %description libs -l pl.UTF-8 |
5a56b716 | 95 | Ten pakiet zawiera biblioteki dynamiczne potrzebne dla aplikacji |
b27e8f95 | 96 | używających środowiska audytu. |
54697230 JB |
97 | |
98 | %package libs-devel | |
5a56b716 | 99 | Summary: Header files for audit libraries |
7f0a1e1e | 100 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek audit |
ab8f94cb | 101 | License: LGPL v2.1+ |
54697230 JB |
102 | Group: Development/Libraries |
103 | Requires: %{name}-libs = %{version}-%{release} | |
d80f3483 | 104 | Requires: linux-libc-headers >= 7:2.6.30 |
54697230 JB |
105 | |
106 | %description libs-devel | |
107 | The audit-libs-devel package contains the header files needed for | |
108 | developing applications that need to use the audit framework library. | |
109 | ||
b27e8f95 JR |
110 | %description libs-devel -l pl.UTF-8 |
111 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
112 | używających biblioteki środowiska audytu. | |
54697230 JB |
113 | |
114 | %package libs-static | |
5a56b716 | 115 | Summary: Static audit libraries |
7f0a1e1e | 116 | Summary(pl.UTF-8): Statyczne biblioteki audit |
ab8f94cb | 117 | License: LGPL v2.1+ |
54697230 JB |
118 | Group: Development/Libraries |
119 | Requires: %{name}-libs-devel = %{version}-%{release} | |
120 | ||
121 | %description libs-static | |
5a56b716 JB |
122 | The audit-libs-static package contains the static libraries for |
123 | developing applications that need to use the audit framework. | |
54697230 | 124 | |
b27e8f95 | 125 | %description libs-static -l pl.UTF-8 |
5a56b716 | 126 | Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji |
b27e8f95 | 127 | używających środowiska audytu. |
54697230 | 128 | |
526a1f46 JB |
129 | %package plugin-prelude |
130 | Summary: prelude plugin for audispd | |
131 | Summary(pl.UTF-8): Wtyczka prelude dla audispd | |
132 | Group: Daemons | |
133 | Requires: %{name} = %{version}-%{release} | |
134 | ||
135 | %description plugin-prelude | |
136 | audisp-prelude is a plugin for the audit event dispatcher daemon, | |
137 | audispd, that uses libprelude to send IDMEF alerts for possible | |
138 | Intrusion Detection events. | |
139 | ||
140 | %description plugin-prelude -l pl.UTF-8 | |
141 | audisp-prelude to wtyczka demona audispd przekazującego zdarzenia | |
142 | audytowe wykorzystująca libprelude do wysyłania alarmów IDMEF o | |
143 | prawdopodobnych zdarzeniach IDS. | |
144 | ||
49caa03e JB |
145 | %package -n golang-audit |
146 | Summary: Go language interface to libaudit library | |
147 | Summary(pl.UTF-8): Interfejs języka Go do biblioteki libaudit | |
148 | License: LGPL v2.1+ | |
149 | Group: Development/Languages | |
150 | Requires: %{name}-libs = %{version}-%{release} | |
659527ec | 151 | Requires: golang >= 1.4 |
49caa03e JB |
152 | |
153 | %description -n golang-audit | |
154 | Go language interface to libaudit library. | |
155 | ||
156 | %description -n golang-audit -l pl.UTF-8 | |
157 | Interfejs języka Go do biblioteki libaudit. | |
158 | ||
9ee6c1ce | 159 | %package -n python-audit |
659527ec JB |
160 | Summary: Python 2.x interface to libaudit library |
161 | Summary(pl.UTF-8): Interfejs Pythona 2.x do biblioteki libaudit | |
ab8f94cb | 162 | License: LGPL v2.1+ |
9ee6c1ce JB |
163 | Group: Libraries/Python |
164 | Requires: %{name}-libs = %{version}-%{release} | |
165 | ||
166 | %description -n python-audit | |
659527ec | 167 | Python 2.x interface to libaudit library. |
9ee6c1ce | 168 | |
b27e8f95 | 169 | %description -n python-audit -l pl.UTF-8 |
659527ec | 170 | Interfejs Pythona 2.x do biblioteki libaudit. |
9ee6c1ce | 171 | |
2d0ad02a | 172 | %package -n python3-audit |
659527ec JB |
173 | Summary: Python 3.x interface to libaudit library |
174 | Summary(pl.UTF-8): Interfejs Pythona 3.x do biblioteki libaudit | |
2d0ad02a JR |
175 | License: LGPL v2.1+ |
176 | Group: Libraries/Python | |
177 | Requires: %{name}-libs = %{version}-%{release} | |
178 | ||
179 | %description -n python3-audit | |
659527ec | 180 | Python 3.x interface to libaudit library. |
2d0ad02a JR |
181 | |
182 | %description -n python3-audit -l pl.UTF-8 | |
659527ec | 183 | Interfejs Pythona 3.x do biblioteki libaudit. |
2d0ad02a | 184 | |
54697230 JB |
185 | %prep |
186 | %setup -q | |
eb9b3ab9 | 187 | %patch0 -p1 |
1e78f2d9 | 188 | %patch1 -p1 |
61d763d9 | 189 | %patch2 -p1 |
220b3c30 | 190 | %{!?with_zos_remote:%patch3 -p1} |
ffa39469 | 191 | %patch4 -p1 |
0bd7ba4a | 192 | %patch5 -p1 |
738da8d6 JR |
193 | %patch6 -p1 |
194 | %patch7 -p1 | |
23c6312b | 195 | %patch8 -p1 |
1a8b063a | 196 | |
68d62ac9 | 197 | %if %{without python} |
b89f6d79 | 198 | sed 's#swig/Makefile ##' -i configure.ac |
9d3991e5 | 199 | sed 's/swig//' -i Makefile.am |
57f09668 | 200 | %endif |
201 | ||
54697230 JB |
202 | %build |
203 | %{__libtoolize} | |
204 | %{__aclocal} | |
205 | %{__autoconf} | |
206 | %{__autoheader} | |
207 | %{__automake} | |
cc094a3e | 208 | %configure \ |
220b3c30 | 209 | %{?with_kerberos5:--enable-gssapi-krb5} \ |
ffa39469 | 210 | --enable-systemd \ |
61d763d9 JB |
211 | --with-apparmor \ |
212 | --with-libwrap \ | |
526a1f46 | 213 | %{?with_prelude:--with-prelude} |
54697230 | 214 | |
738da8d6 | 215 | %{__make} |
bf2e6acc | 216 | |
54697230 JB |
217 | %install |
218 | rm -rf $RPM_BUILD_ROOT | |
0167336b | 219 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/audit/rules.d,%{_var}/log/audit} |
54697230 JB |
220 | |
221 | %{__make} install \ | |
222 | DESTDIR=$RPM_BUILD_ROOT | |
223 | ||
0167336b JB |
224 | # default to no audit (and no overhead) |
225 | cp -p rules/10-no-audit.rules $RPM_BUILD_ROOT%{_sysconfdir}/audit/rules.d | |
226 | ||
738da8d6 JR |
227 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd |
228 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd | |
bf2e6acc | 229 | |
54697230 JB |
230 | install -d $RPM_BUILD_ROOT/%{_lib} |
231 | mv -f $RPM_BUILD_ROOT%{_libdir}/libaudit.so.* $RPM_BUILD_ROOT/%{_lib} | |
fef538cf | 232 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libaudit.so.*.*.*) \ |
1a8b063a | 233 | $RPM_BUILD_ROOT%{_libdir}/libaudit.so |
8ba70267 | 234 | mv -f $RPM_BUILD_ROOT%{_libdir}/libauparse.so.* $RPM_BUILD_ROOT/%{_lib} |
fef538cf | 235 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*) \ |
8ba70267 | 236 | $RPM_BUILD_ROOT%{_libdir}/libauparse.so |
54697230 | 237 | |
738da8d6 JR |
238 | # RH initscripts-specific |
239 | %{__rm} -r $RPM_BUILD_ROOT%{_libexecdir}/initscripts | |
6c98eb8c | 240 | |
57f09668 | 241 | %if %{with python} |
68d62ac9 JB |
242 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
243 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
738da8d6 | 244 | %py_postclean |
68d62ac9 | 245 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} |
57f09668 | 246 | %endif |
9ee6c1ce | 247 | |
659527ec | 248 | %if %{with python3} |
2d0ad02a JR |
249 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.{la,a} |
250 | %endif | |
251 | ||
54697230 JB |
252 | %clean |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | ||
255 | %post libs -p /sbin/ldconfig | |
256 | %postun libs -p /sbin/ldconfig | |
257 | ||
258 | %post | |
738da8d6 JR |
259 | # Copy default rules into place on new installation |
260 | if [ ! -e %{_sysconfdir}/audit/audit.rules ] ; then | |
0167336b | 261 | cp -a %{_sysconfdir}/audit/rules.d/10-no-audit.rules %{_sysconfdir}/audit/audit.rules |
738da8d6 | 262 | fi |
54697230 | 263 | /sbin/chkconfig --add auditd |
2a6b8c9c | 264 | %service auditd restart "audit daemon" |
7ede5762 | 265 | %systemd_post auditd.service |
54697230 JB |
266 | |
267 | %preun | |
268 | if [ "$1" = "0" ]; then | |
2a6b8c9c | 269 | %service auditd stop |
54697230 JB |
270 | /sbin/chkconfig --del auditd |
271 | fi | |
9a3b9076 BZ |
272 | %systemd_preun auditd.service |
273 | ||
7ede5762 JR |
274 | %postun |
275 | %systemd_reload | |
276 | ||
277 | %triggerpostun -- %{name} < 2.2-2 | |
278 | %systemd_trigger auditd.service | |
9a3b9076 | 279 | |
738da8d6 JR |
280 | %triggerpostun -- %{name} < 2.3-1 |
281 | if [ -e %{_sysconfdir}/audit/audit.rules.rpmsave ] ; then | |
282 | %{__mv} %{_sysconfdir}/audit/audit.rules{.rpmsave,} | |
283 | fi | |
f5eaf0b6 JR |
284 | %service auditd restart "audit daemon" |
285 | %systemd_post auditd.service | |
738da8d6 | 286 | |
0167336b JB |
287 | %triggerpostun -- %{name} < 2.5-1 |
288 | if [ -f %{_sysconfdir}/audit/rules.d/audit.rules.rpmsave ]; then | |
289 | %banner %{name} -e <<EOF | |
290 | Since audit 2.5 %{_sysconfdir}/audit/rules.d/audit.rules file (now saved | |
291 | as audit.rules.rpmnew) is replaced by a set of numbered rule files - remember | |
292 | to update your configuration! | |
293 | EOF | |
294 | fi | |
295 | ||
54697230 JB |
296 | %files |
297 | %defattr(644,root,root,755) | |
0167336b | 298 | %doc AUTHORS ChangeLog README THANKS TODO rules/{README-rules,*.rules} init.d/auditd.cron |
2bfdaebd | 299 | %attr(750,root,root) %{_bindir}/aulast |
08b12da9 JB |
300 | %attr(750,root,root) %{_bindir}/aulastlog |
301 | %attr(750,root,root) %{_bindir}/ausyscall | |
d80f3483 | 302 | %attr(750,root,root) %{_bindir}/auvirt |
80475ae6 | 303 | %attr(750,root,root) %{_sbindir}/audispd |
54697230 JB |
304 | %attr(750,root,root) %{_sbindir}/auditctl |
305 | %attr(750,root,root) %{_sbindir}/auditd | |
896d27e1 | 306 | %attr(750,root,root) %{_sbindir}/augenrules |
e5a8c0d8 | 307 | %attr(750,root,root) %{_sbindir}/aureport |
54697230 JB |
308 | %attr(750,root,root) %{_sbindir}/ausearch |
309 | %attr(750,root,root) %{_sbindir}/autrace | |
08b12da9 | 310 | %attr(755,root,root) %{_sbindir}/audisp-remote |
ffa39469 | 311 | %{?with_zos_remote:%attr(755,root,root) %{_sbindir}/audispd-zos-remote} |
0a348a92 JB |
312 | %dir %{_sysconfdir}/audisp |
313 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audispd.conf | |
08b12da9 | 314 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audisp-remote.conf |
ffa39469 | 315 | %{?with_zos_remote:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/zos-remote.conf} |
0a348a92 JB |
316 | %dir %{_sysconfdir}/audisp/plugins.d |
317 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/af_unix.conf | |
08b12da9 | 318 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/au-remote.conf |
ffa39469 | 319 | %{?with_zos_remote:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/audispd-zos-remote.conf} |
0a348a92 | 320 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/syslog.conf |
7630c8d3 JB |
321 | %dir %{_sysconfdir}/audit |
322 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/auditd.conf | |
896d27e1 | 323 | %dir %{_sysconfdir}/audit/rules.d |
0167336b | 324 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/audit/rules.d/10-no-audit.rules |
80475ae6 | 325 | %attr(754,root,root) /etc/rc.d/init.d/auditd |
f6ae0a53 | 326 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/auditd |
7ede5762 | 327 | %{systemdunitdir}/auditd.service |
54697230 | 328 | %attr(750,root,root) %dir %{_var}/log/audit |
0a348a92 | 329 | %{_mandir}/man5/audispd.conf.5* |
08b12da9 | 330 | %{_mandir}/man5/audisp-remote.conf.5* |
80475ae6 | 331 | %{_mandir}/man5/auditd.conf.5* |
526a1f46 | 332 | %{_mandir}/man5/ausearch-expression.5* |
ffa39469 | 333 | %{?with_zos_remote:%{_mandir}/man5/zos-remote.conf.5*} |
693afa1c | 334 | %{_mandir}/man7/audit.rules.7* |
08b12da9 | 335 | %{_mandir}/man8/audisp-remote.8* |
ffa39469 | 336 | %{?with_zos_remote:%{_mandir}/man8/audispd-zos-remote.8*} |
526a1f46 JB |
337 | %{_mandir}/man8/audispd.8* |
338 | %{_mandir}/man8/auditctl.8* | |
339 | %{_mandir}/man8/auditd.8* | |
896d27e1 | 340 | %{_mandir}/man8/augenrules.8* |
2bfdaebd | 341 | %{_mandir}/man8/aulast.8* |
526a1f46 JB |
342 | %{_mandir}/man8/aulastlog.8* |
343 | %{_mandir}/man8/aureport.8* | |
344 | %{_mandir}/man8/ausearch.8* | |
08b12da9 | 345 | %{_mandir}/man8/ausyscall.8* |
526a1f46 | 346 | %{_mandir}/man8/autrace.8* |
d80f3483 | 347 | %{_mandir}/man8/auvirt.8* |
54697230 JB |
348 | |
349 | %files libs | |
350 | %defattr(644,root,root,755) | |
351 | %attr(755,root,root) /%{_lib}/libaudit.so.*.*.* | |
82313177 | 352 | %attr(755,root,root) %ghost /%{_lib}/libaudit.so.1 |
8ba70267 | 353 | %attr(755,root,root) /%{_lib}/libauparse.so.*.*.* |
fef538cf | 354 | %attr(755,root,root) %ghost /%{_lib}/libauparse.so.0 |
7630c8d3 | 355 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libaudit.conf |
693afa1c | 356 | %{_mandir}/man5/libaudit.conf.5* |
54697230 JB |
357 | |
358 | %files libs-devel | |
359 | %defattr(644,root,root,755) | |
360 | %attr(755,root,root) %{_libdir}/libaudit.so | |
8ba70267 | 361 | %attr(755,root,root) %{_libdir}/libauparse.so |
54697230 | 362 | %{_libdir}/libaudit.la |
8ba70267 | 363 | %{_libdir}/libauparse.la |
6d3a6f20 | 364 | %{_includedir}/auparse*.h |
54697230 | 365 | %{_includedir}/libaudit.h |
49caa03e | 366 | %{_pkgconfigdir}/audit.pc |
2d0ad02a | 367 | %{_pkgconfigdir}/auparse.pc |
0167336b | 368 | %{_aclocaldir}/audit.m4 |
526a1f46 JB |
369 | %{_mandir}/man3/audit_*.3* |
370 | %{_mandir}/man3/auparse_*.3* | |
371 | %{_mandir}/man3/ausearch_*.3* | |
372 | %{_mandir}/man3/get_auditfail_action.3* | |
373 | %{_mandir}/man3/set_aumessage_mode.3* | |
54697230 JB |
374 | |
375 | %files libs-static | |
376 | %defattr(644,root,root,755) | |
377 | %{_libdir}/libaudit.a | |
8ba70267 | 378 | %{_libdir}/libauparse.a |
9ee6c1ce | 379 | |
526a1f46 JB |
380 | %if %{with prelude} |
381 | %files plugin-prelude | |
382 | %defattr(644,root,root,755) | |
383 | %attr(755,root,root) %{_sbindir}/audisp-prelude | |
384 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audisp-prelude.conf | |
385 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/au-prelude.conf | |
386 | %{_mandir}/man5/audisp-prelude.conf.5* | |
387 | %{_mandir}/man8/audisp-prelude.8* | |
388 | %endif | |
389 | ||
49caa03e JB |
390 | %if %{with golang} |
391 | %files -n golang-audit | |
392 | %defattr(644,root,root,755) | |
2d0ad02a JR |
393 | %dir %{_libdir}/golang/src/redhat.com |
394 | %{_libdir}/golang/src/redhat.com/audit | |
49caa03e JB |
395 | %endif |
396 | ||
57f09668 | 397 | %if %{with python} |
9ee6c1ce JB |
398 | %files -n python-audit |
399 | %defattr(644,root,root,755) | |
400 | %attr(755,root,root) %{py_sitedir}/_audit.so | |
84214962 | 401 | %attr(755,root,root) %{py_sitedir}/auparse.so |
4c11c375 | 402 | %{py_sitedir}/audit.py[co] |
57f09668 | 403 | %endif |
2d0ad02a JR |
404 | |
405 | %if %{with python3} | |
406 | %files -n python3-audit | |
407 | %defattr(644,root,root,755) | |
408 | %attr(755,root,root) %{py3_sitedir}/_audit.so | |
409 | %attr(755,root,root) %{py3_sitedir}/auparse.so | |
410 | %{py3_sitedir}/audit.py | |
411 | %endif |