From 4fdc3c59c4f001d7a91a8e55ae2f825f6d005a64 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 12 Feb 2016 11:42:08 +0100 Subject: [PATCH] Fix problem when running without privsep (#1303910) --- openssh-6.6p1-privsep-selinux.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh-6.6p1-privsep-selinux.patch b/openssh-6.6p1-privsep-selinux.patch index 87f53df..d7817e5 100644 --- a/openssh-6.6p1-privsep-selinux.patch +++ b/openssh-6.6p1-privsep-selinux.patch @@ -141,7 +141,7 @@ index 684f867..09048bc 100644 platform_setusercontext(pw); - if (platform_privileged_uidswap()) { -+ if (platform_privileged_uidswap() && !is_child) { ++ if (platform_privileged_uidswap() && (!is_child || !use_privsep)) { #ifdef HAVE_LOGIN_CAP if (setusercontext(lc, pw, pw->pw_uid, (LOGIN_SETALL & ~(LOGIN_SETPATH|LOGIN_SETUSER))) < 0) {