summaryrefslogtreecommitdiff
path: root/src/responder/pam
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-08 00:48:12 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:02 +0100
commit740870643f337ce70d85f25f9ed057cd1f91028c (patch)
tree319f52b3a9e13a7c14492808a789778f1ee37613 /src/responder/pam
parent2913240aee51ce81195148a4d814e967f66839c4 (diff)
downloadsssd-740870643f337ce70d85f25f9ed057cd1f91028c.tar.gz
sssd-740870643f337ce70d85f25f9ed057cd1f91028c.tar.bz2
sssd-740870643f337ce70d85f25f9ed057cd1f91028c.zip
Add domain argument to sysdb selinux functions
Diffstat (limited to 'src/responder/pam')
-rw-r--r--src/responder/pam/pamsrv_cmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 62d160c2..dd3637b0 100644
--- a/src/responder/pam/pamsrv_cmd.c
+++ b/src/responder/pam/pamsrv_cmd.c
@@ -526,7 +526,8 @@ static errno_t process_selinux_mappings(struct pam_auth_req *preq)
goto done;
}
- ret = sysdb_search_selinux_config(tmp_ctx, sysdb, NULL, &config);
+ ret = sysdb_search_selinux_config(tmp_ctx, sysdb,
+ preq->domain, NULL, &config);
if (ret == ENOENT) {
DEBUG(SSSDBG_TRACE_INTERNAL, ("No SELinux support found for the domain\n"));
ret = EOK;
@@ -592,7 +593,8 @@ static errno_t process_selinux_mappings(struct pam_auth_req *preq)
}
/* Fetch all maps applicable to the user who is currently logging in */
- ret = sysdb_search_selinux_usermap_by_username(tmp_ctx, sysdb, pd->user,
+ ret = sysdb_search_selinux_usermap_by_username(tmp_ctx, sysdb,
+ preq->domain, pd->user,
&usermaps);
if (ret != EOK && ret != ENOENT) {
goto done;