dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone
Blob Blame History Raw
From 66d12b25e5976041f7298b94c9cfe03ee77aa2bb Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn@redhat.com>
Date: Thu, 6 Nov 2014 12:12:04 +0100
Subject: [PATCH 74/75] IPA: Store right username to selinux child context
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Wrong name would be used with fully qualified names.

Reviewed-by: Michal Židek <mzidek@redhat.com>
---
 src/providers/ipa/ipa_selinux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index b392d82a61cd523cd5e73e5246013bdbc448ddd5..30ad6f0a7c4622ca5eb9a75ae4f57183543515c6 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;
-- 
1.9.3