diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-15 15:10:42 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-16 11:11:24 +0200 |
commit | af824bac568ebe8a03273f73246ac78b415ea756 (patch) | |
tree | 3028cca3a8deb5ee5c950be48f46d3a2029a8465 | |
parent | bdbf4f169e4d5d00b0616df19f7a55debb407f78 (diff) | |
download | sssd-af824bac568ebe8a03273f73246ac78b415ea756.tar.gz sssd-af824bac568ebe8a03273f73246ac78b415ea756.tar.xz sssd-af824bac568ebe8a03273f73246ac78b415ea756.zip |
Build SELinux code in responder conditionally
https://fedorahosted.org/sssd/ticket/1480
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 92cd73407..8c9dd9b55 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -33,7 +33,9 @@ #include "responder/pam/pam_helpers.h" #include "db/sysdb.h" #include "db/sysdb_selinux.h" +#ifdef HAVE_SELINUX #include <selinux/selinux.h> +#endif enum pam_verbosity { PAM_VERBOSITY_NO_MESSAGES = 0, @@ -354,6 +356,8 @@ fail: return ret; } +#ifdef HAVE_SELINUX + #define ALL_SERVICES "*" static errno_t write_selinux_string(const char *username, char *string) @@ -595,6 +599,7 @@ done: talloc_free(tmp_ctx); return ret; } +#endif static errno_t filter_responses(struct confdb_ctx *cdb, struct response_data *resp_list) @@ -791,6 +796,7 @@ static void pam_reply(struct pam_auth_req *preq) return; } +#ifdef HAVE_SELINUX if (pd->cmd == SSS_PAM_ACCT_MGMT && pd->pam_status == PAM_SUCCESS) { /* Try to fetch data from sysdb @@ -800,6 +806,7 @@ static void pam_reply(struct pam_auth_req *preq) pd->pam_status = PAM_SYSTEM_ERR; } } +#endif ret = sss_packet_new(cctx->creq, 0, sss_packet_get_cmd(cctx->creq->in), &cctx->creq->out); |