Skip to content

Commit bf8f2b3

Browse files
committed
unhide audit_fgets
1 parent 94e5a86 commit bf8f2b3

7 files changed

Lines changed: 9 additions & 16 deletions

File tree

audisp/plugins/af_unix/Makefile.am

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

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

audisp/plugins/af_unix/audisp-af_unix.c

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

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

audisp/plugins/ids/ids.c

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

audisp/plugins/syslog/Makefile.am

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

2424
CONFIG_CLEAN_FILES = *.loT *.rej *.orig
2525
EXTRA_DIST = syslog.conf $(man_MANS)
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
26+
AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib -I${top_srcdir}/common -I${top_srcdir}/auparse
2827
prog_confdir = $(sysconfdir)/audit
2928
plugin_confdir=$(prog_confdir)/plugins.d
3029
plugin_conf = syslog.conf

audisp/plugins/syslog/audisp-syslog.c

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

3938
/* Global Data */

common/common.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,5 @@ 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-
9990
#endif
10091

lib/libaudit.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,13 @@ 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+
308315
#ifdef __cplusplus
309316
}
310317
#endif

0 commit comments

Comments
 (0)