Skip to content

Commit

Permalink
Add go language bindings for limited use of libaudit
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.fedorahosted.org/svn/audit/trunk@970 03a675c2-f56d-4096-908f-63dba836b7e4
  • Loading branch information
sgrubb committed Jul 30, 2014
1 parent 7968e53 commit 9371586
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -7,6 +7,7 @@
- Set systemd startup to wait until systemd-tmpfiles-setup.service (#1097314)
- Interpret a0 of socketcall and ipccall syscalls
- Add pkgconfig file for libaudit
- Add go language bindings for limited use of libaudit

2.3.7
- Limit number of options in a rule in libaudit
Expand Down
8 changes: 6 additions & 2 deletions bindings/Makefile.am
@@ -1,5 +1,5 @@
# Makefile.am --
# Copyright 2007 Red Hat Inc., Durham, North Carolina.
# Copyright 2007,2014 Red Hat Inc., Durham, North Carolina.
# All Rights Reserved.
#
# This library is free software; you can redistribute it and/or
Expand All @@ -22,6 +22,10 @@

CONFIG_CLEAN_FILES = *.loT *.rej *.orig

SUBDIRS =""
if HAVE_PYTHON
SUBDIRS = python
SUBDIRS += python
endif
if HAVE_GOLANG
SUBDIRS += golang
endif
23 changes: 22 additions & 1 deletion configure.ac
Expand Up @@ -106,6 +106,27 @@ fi
fi
AM_CONDITIONAL(HAVE_PYTHON, test ${python_found} = "yes")

AC_MSG_CHECKING(whether to create Go language bindings)
AC_ARG_WITH(golang,
AS_HELP_STRING([--with-golang],[enable building golang bindings]),
use_golang=$withval,
use_golang=auto)
if test x$use_golang = xno ; then
golang_found="no"
AC_MSG_RESULT(no)
else
AC_CHECK_PROG([GOLANG],[go],[go],[no])
AS_IF([test "x$GOLANG" != "xno"],[
AC_MSG_RESULT([yes])
golang_found="yes"
# Substitute some golang environment.
GOROOT=`$GOLANG env GOROOT`
AC_SUBST([GOROOT])
])
fi
AM_CONDITIONAL(HAVE_GOLANG, test ${golang_found} = "yes")

#auditd listener
AC_MSG_CHECKING(whether to include auditd network listener support)
AC_ARG_ENABLE(listener,
Expand Down Expand Up @@ -293,7 +314,7 @@ AC_SUBST(LIBWRAP_LIBS)
AC_SUBST(LIBPRELUDE_CFLAGS)
AC_SUBST(LIBPRELUDE_LDFLAGS)

AC_OUTPUT(Makefile lib/Makefile lib/audit.pc lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile audisp/plugins/zos-remote/Makefile bindings/Makefile bindings/python/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)
AC_OUTPUT(Makefile lib/Makefile lib/audit.pc lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile audisp/plugins/zos-remote/Makefile bindings/Makefile bindings/python/Makefile bindings/golang/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)

echo .
echo "
Expand Down

0 comments on commit 9371586

Please sign in to comment.