summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-11-06 12:12:04 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-11-06 19:22:11 +0100
commit4612fa4160ea14189accbe58de5cee9149187c21 (patch)
tree1b96c107083a4be291d6ea42a083503db2bbf161 /src/providers
parent013c01bd491b535e1705dbb3dbd8424cffc66b7a (diff)
downloadsssd-4612fa4160ea14189accbe58de5cee9149187c21.tar.gz
sssd-4612fa4160ea14189accbe58de5cee9149187c21.tar.xz
sssd-4612fa4160ea14189accbe58de5cee9149187c21.zip
IPA: Store right username to selinux child context
Wrong name would be used with fully qualified names. Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index b392d82a6..30ad6f0a7 100644
--- a/src/providers/ipa/ipa_selinux.c
+++ b/src/providers/ipa/ipa_selinux.c
@@ -867,7 +867,7 @@ selinux_child_setup(TALLOC_CTX *mem_ctx,
sci->seuser = talloc_strdup(sci, seuser);
sci->mls_range = talloc_strdup(sci, mls_range);
- sci->username = talloc_strdup(sci, username);
+ sci->username = talloc_strdup(sci, username_final);
if (sci->seuser == NULL || sci->mls_range == NULL
|| sci->username == NULL) {
ret = ENOMEM;