From 28d39b6dd71e6a054aa06c66f683a1e15439e56b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 21 May 2009 13:20:10 +0200 Subject: mount: fix undefined reference to `security_get_initial_context' > Gentoo-hardened stable have: sys-libs/libselinux-1.34.14 > I have: > mount.c:(.text+0x12ce): undefined reference to `security_get_initial_context' Reported-by: Максим Бритов Addresses-Gentoo-Bug: #270168 Signed-off-by: Karel Zak --- mount/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mount/mount.c') diff --git a/mount/mount.c b/mount/mount.c index f48f9d408..cc5b88ae5 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -1561,7 +1561,7 @@ mount_retry: out: -#ifdef HAVE_LIBSELINUX +#if defined(HAVE_LIBSELINUX) && defined(HAVE_SECURITY_GET_INITIAL_CONTEXT) if (res != EX_FAIL && verbose && is_selinux_enabled() > 0) { security_context_t raw = NULL, def = NULL; -- cgit v1.2.3-55-g7522