Skip to content

Commit b0aa8a6

Browse files
committed
Hide audit_fgets until plugin work is ready
1 parent dc55c73 commit b0aa8a6

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

ChangeLog

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
4.0.5
2-
- Make audit_fgets a public API
32
- Rework audisp queue to be lockless
43
- Fix missing delete command in auditctl
54
- Allow plus addresses (rfc5233) to auditd email.

audisp/plugins/af_unix/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ CONFIG_CLEAN_FILES = *.rej *.orig
2525
CONF_FILES = af_unix.conf
2626
EXTRA_DIST = $(CONF_FILES) $(man_MANS)
2727

28-
AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib -I${top_srcdir}/audisp
28+
# FIXME add common temporarily
29+
AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib -I${top_srcdir}/audisp -I${top_srcdir}/common
2930
LIBS = ${top_builddir}/lib/libaudit.la
3031
prog_confdir = $(sysconfdir)/audit
3132
plugin_confdir=$(prog_confdir)/plugins.d

audisp/plugins/af_unix/audisp-af_unix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <cap-ng.h>
4444
#endif
4545
#include "libaudit.h"
46+
#include "common.h" // FIXME temporary
4647
#include "audispd-pconfig.h"
4748

4849
#define DEFAULT_PATH "/var/run/audispd_events"

audisp/plugins/ids/ids.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <sys/timerfd.h>
3737
#include "auparse.h"
3838
#include "libaudit.h"
39+
#include "common.h" // FIXME temporary
3940
#include "ids.h"
4041
#include "ids_config.h"
4142
#include "origin.h"

audisp/plugins/syslog/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
CONFIG_CLEAN_FILES = *.loT *.rej *.orig
2525
EXTRA_DIST = syslog.conf $(man_MANS)
26-
AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib -I${top_srcdir}/common -I${top_srcdir}/auparse
26+
# FIXME: remove common
27+
AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib -I${top_srcdir}/common -I${top_srcdir}/auparse -I${top_srcdir}/common
2728
prog_confdir = $(sysconfdir)/audit
2829
plugin_confdir=$(prog_confdir)/plugins.d
2930
plugin_conf = syslog.conf

audisp/plugins/syslog/audisp-syslog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <cap-ng.h>
3434
#endif
3535
#include "libaudit.h"
36+
#include "common.h" // FIXME temporary
3637
#include "auparse.h"
3738

3839
/* Global Data */

common/common.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,14 @@ void wall_message(const char *fmt, ...)
8787
#endif
8888

8989
AUDIT_HIDDEN_END
90+
91+
// FIXME temporary
92+
/* Helper function for reading stdin in plugins */
93+
void audit_fgets_clear(void);
94+
int audit_fgets_eof(void);
95+
int audit_fgets_more(size_t blen);
96+
int audit_fgets(char *buf, size_t blen, int fd)
97+
__attr_access ((__write_only__, 1, 2));
98+
9099
#endif
91100

lib/libaudit.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,6 @@ int audit_can_control(void);
305305
int audit_can_write(void);
306306
int audit_can_read(void);
307307

308-
/* Helper function for reading stdin in plugins */
309-
void audit_fgets_clear(void);
310-
int audit_fgets_eof(void);
311-
int audit_fgets_more(size_t blen);
312-
int audit_fgets(char *buf, size_t blen, int fd)
313-
__attr_access ((__write_only__, 1, 2));
314-
315308
#ifdef __cplusplus
316309
}
317310
#endif

0 commit comments

Comments
 (0)