Skip to content

Commit b2ae69b

Browse files
fix warning
1 parent 02c6dbd commit b2ae69b

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

audisp/plugins/statsd/audisp-statsd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ int main(void)
351351

352352
// Initialize interval timer
353353
timer_fd = timerfd_create (CLOCK_MONOTONIC, 0);
354+
if (timer_fd < 0) {
355+
syslog(LOG_ERR, "unable to open a timerfd");
356+
return 1;
357+
}
354358
pfd[1].fd = timer_fd;
355359
pfd[1].events = POLLIN;
356360
itval.it_interval.tv_sec = d.interval;

audit.spec

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Summary: User space tools for kernel auditing
33
Name: audit
4-
Version: 3.0.10
4+
Version: 3.1
55
Release: 1%{dist}
66
License: GPLv2+
77
Group: System Environment/Daemons
@@ -93,8 +93,8 @@ behavior.
9393
%configure --sbindir=/sbin --libdir=/%{_lib} --with-python=no \
9494
--with-python3=yes \
9595
--enable-gssapi-krb5=yes --with-arm --with-aarch64 \
96-
--with-libcap-ng=yes --enable-zos-remote \
97-
--enable-systemd
96+
--with-libcap-ng=yes --without-golang --enable-zos-remote \
97+
--enable-systemd --enable-experimental --with-io_uring
9898

9999
make CFLAGS="%{optflags}" %{?_smp_mflags}
100100

@@ -130,7 +130,7 @@ touch -r ./audit.spec $RPM_BUILD_ROOT/etc/libaudit.conf
130130
touch -r ./audit.spec $RPM_BUILD_ROOT/usr/share/man/man5/libaudit.conf.5.gz
131131

132132
%check
133-
make check
133+
make %{?_smp_mflags} check
134134
# Get rid of make files so that they don't get packaged.
135135
rm -f rules/Makefile*
136136

@@ -164,7 +164,6 @@ fi
164164
%{_mandir}/man5/libaudit.conf.5.gz
165165

166166
%files libs-devel
167-
%defattr(-,root,root,-)
168167
%doc contrib/plugin
169168
%{_libdir}/libaudit.so
170169
%{_libdir}/libauparse.so
@@ -194,7 +193,6 @@ fi
194193
%license COPYING
195194
%doc README ChangeLog rules init.d/auditd.cron
196195
%attr(755,root,root) %{_datadir}/%{name}
197-
%attr(644,root,root) %{_datadir}/%{name}/sample-rules/*
198196
%attr(644,root,root) %{_mandir}/man8/auditctl.8.gz
199197
%attr(644,root,root) %{_mandir}/man8/auditd.8.gz
200198
%attr(644,root,root) %{_mandir}/man8/aureport.8.gz
@@ -247,8 +245,15 @@ fi
247245
%config(noreplace) %attr(640,root,root) /etc/audit/audisp-remote.conf
248246
%config(noreplace) %attr(640,root,root) /etc/audit/plugins.d/au-remote.conf
249247
%config(noreplace) %attr(640,root,root) /etc/audit/plugins.d/syslog.conf
248+
%config(noreplace) %attr(640,root,root) /etc/audit/audisp-statsd.conf
249+
%config(noreplace) %attr(640,root,root) /etc/audit/plugins.d/au-statsd.conf
250+
%config(noreplace) %attr(640,root,root) /etc/audit/ids.conf
251+
%config(noreplace) %attr(640,root,root) /etc/audit/plugins.d/audisp-ids.conf
252+
%attr(644,root,root) %{_datadir}/%{name}/ids-rules/*
250253
%attr(750,root,root) /sbin/audisp-remote
251254
%attr(750,root,root) /sbin/audisp-syslog
255+
%attr(750,root,root) /sbin/audisp-ids
256+
%attr(750,root,root) /sbin/audisp-statsd
252257
%attr(700,root,root) %dir %{_var}/spool/audit
253258
%attr(644,root,root) %{_mandir}/man8/audispd-zos-remote.8.gz
254259
%attr(644,root,root) %{_mandir}/man5/zos-remote.conf.5.gz
@@ -258,6 +263,6 @@ fi
258263

259264

260265
%changelog
261-
* Mon Aug 29 2022 Steve Grubb <sgrubb@redhat.com> 3.0.10-1
266+
* Thu Feb 08 2023 Steve Grubb <sgrubb@redhat.com> 3.1-1
262267
- New upstream release
263268

0 commit comments

Comments
 (0)