summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-05-24 10:32:32 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-05-24 10:32:32 -0700
commite7f1c433dc0bd8e864cec68dbc120f27696bbba6 (patch)
tree45ce3593c3954063ebff714e9b501fa210418324
parent677d028e41e890103679eec92b58044420b9b4c5 (diff)
Bug #11020: xdm doesn't set SSH_AUTH_SOCK even though using with pam_ssh
Wasn't calling pam_setcred()/pam_getenvlist() if setusercontext() was present X.Org Bugzilla #11020: <https://bugs.freedesktop.org/show_bug.cgi?id=11020>
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index 384fd78..195c26f 100644
--- a/session.c
+++ b/session.c
@@ -627,6 +627,8 @@ StartClient (
return (0);
}
#endif /* QNX4 doesn't support multi-groups, no initgroups() */
+#endif /* !HAS_SETUSERCONTEXT */
+
#ifdef USE_PAM
if (pamh) {
long i;
@@ -647,6 +649,8 @@ StartClient (
}
#endif
+
+#ifndef HAS_SETUSERCONTEXT
if (setuid(verify->uid) < 0) {
LogError ("setuid %d (user \"%s\") failed, errno=%d\n",
verify->uid, name, errno);