This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Check audit_log_user_avc_message for libaudit
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Tue, 3 Jan 2006 15:01:14 -0800
- Subject: PATCH: Check audit_log_user_avc_message for libaudit
/usr/lib64/libaudit.so on RHEL 4 U2 doesn't have
audit_log_user_avc_message which is used by nscd/selinux.c. Since
configure checks audit_log_avc for libaudit, it leads to the
build failure. This patch changes it to audit_log_user_avc_message.
H.J.
---
2006-01-03 H.J. Lu <hongjiu.lu@intel.com>
* configure.in (HAVE_LIBAUDIT): Check
audit_log_user_avc_message instead of audit_log_avc.
* configure: Regenerated.
--- libc/configure.in.audit 2006-01-03 14:03:03.000000000 -0800
+++ libc/configure.in 2006-01-03 14:53:24.000000000 -0800
@@ -1996,7 +1996,7 @@ if test "x$have_selinux" = xyes; then
AC_DEFINE(HAVE_SELINUX,1,[SELinux support])
# See if we have the libaudit library
- AC_CHECK_LIB(audit, audit_log_avc,
+ AC_CHECK_LIB(audit, audit_log_user_avc_message,
have_libaudit=yes, have_libaudit=no)
if test "x$have_libaudit" = xyes; then
AC_DEFINE(HAVE_LIBAUDIT,1,[SELinux libaudit support])