]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sulogin: fix selinux build
authorKarel Zak <kzak@redhat.com>
Mon, 12 Mar 2012 11:47:37 +0000 (12:47 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Mar 2012 11:47:37 +0000 (12:47 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/Makefile.am
login-utils/sulogin.c

index fbc73ece246370405933d77b828a7c62e6794dbb..9b55b1b1ded3f0d7e609e18e0beffc42b678b8e8 100644 (file)
@@ -88,6 +88,7 @@ chfn_SOURCES += selinux_utils.c selinux_utils.h
 chsh_SOURCES += selinux_utils.c selinux_utils.h
 vipw_LDADD += -lselinux
 login_ldadd_common += -lselinux
+sulogin_LDADD += -lselinux
 endif
 
 
index 999fc2085a66fc3d476689b06a31a8d6c8077531..da67dd1139ae92b55540927169627c651ed50384 100644 (file)
@@ -379,7 +379,8 @@ static void sushell(struct passwd *pwd)
        unmask_signal(SIGINT, &saved_sigint);
        unmask_signal(SIGTSTP, &saved_sigtstp);
        unmask_signal(SIGQUIT, &saved_sigquit);
-#ifdef WITH_SELINUX
+
+#ifdef HAVE_LIBSELINUX
        if (is_selinux_enabled() > 0) {
                security_context_t scon=NULL;
                char *seuser=NULL;