summaryrefslogtreecommitdiff
path: root/src/responder
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-08-27 08:23:57 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-04 10:14:18 +0200
commit3d038d2e0dc7af04ec2f7c85ae325accb39f6237 (patch)
treeff5b059032a2e91c46a39d57dc829014100f83ab /src/responder
parent51dfd4f3816cb53b931bf4d1cc28a5bea9f33a7a (diff)
downloadsssd-3d038d2e0dc7af04ec2f7c85ae325accb39f6237.tar.gz
sssd-3d038d2e0dc7af04ec2f7c85ae325accb39f6237.tar.bz2
sssd-3d038d2e0dc7af04ec2f7c85ae325accb39f6237.zip
Check if the SELinux login directory exists
https://fedorahosted.org/sssd/ticket/1492
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/pam/pamsrv_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 238b4fa7..4c035683 100644
--- a/src/responder/pam/pamsrv_cmd.c
+++ b/src/responder/pam/pamsrv_cmd.c
@@ -33,7 +33,7 @@
#include "responder/pam/pam_helpers.h"
#include "db/sysdb.h"
#include "db/sysdb_selinux.h"
-#ifdef HAVE_SELINUX
+#ifdef HAVE_SELINUX_LOGIN_DIR
#include <selinux/selinux.h>
#endif
@@ -356,7 +356,7 @@ fail:
return ret;
}
-#ifdef HAVE_SELINUX
+#ifdef HAVE_SELINUX_LOGIN_DIR
#define ALL_SERVICES "*"
#define selogin_path(mem_ctx, username) \
@@ -829,7 +829,7 @@ static void pam_reply(struct pam_auth_req *preq)
return;
}
-#ifdef HAVE_SELINUX
+#ifdef HAVE_SELINUX_LOGIN_DIR
if (pd->cmd == SSS_PAM_ACCT_MGMT &&
pd->pam_status == PAM_SUCCESS) {
/* Try to fetch data from sysdb