From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 26 16:50:02 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E963B16A468 for ; Sat, 26 May 2007 16:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id C46E113C45D for ; Sat, 26 May 2007 16:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4QGo2cr054872 for ; Sat, 26 May 2007 16:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4QGo2sn054871; Sat, 26 May 2007 16:50:02 GMT (envelope-from gnats) Resent-Date: Sat, 26 May 2007 16:50:02 GMT Resent-Message-Id: <200705261650.l4QGo2sn054871@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yoshihiko Sarumaru Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 57F0C16A469 for ; Sat, 26 May 2007 16:42:59 +0000 (UTC) (envelope-from sarumaru@sachiko.yamayuri.org) Received: from sachiko.yamayuri.org (yumi.yamayuri.org [218.45.22.23]) by mx1.freebsd.org (Postfix) with ESMTP id 83FBE13C45E for ; Sat, 26 May 2007 16:42:58 +0000 (UTC) (envelope-from sarumaru@sachiko.yamayuri.org) Received: from sachiko.yamayuri.org (localhost [127.0.0.1]) by sachiko.yamayuri.org (8.14.1/8.14.1) with ESMTP id l4QGOD9a065378 for ; Sun, 27 May 2007 01:24:13 +0900 (JST) (envelope-from sarumaru@sachiko.yamayuri.org) Received: (from sarumaru@localhost) by sachiko.yamayuri.org (8.14.1/8.14.1/Submit) id l4QGOBKU065377; Sun, 27 May 2007 01:24:11 +0900 (JST) (envelope-from sarumaru) Message-Id: <200705261624.l4QGOBKU065377@sachiko.yamayuri.org> Date: Sun, 27 May 2007 01:24:11 +0900 (JST) From: Yoshihiko Sarumaru To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/113031: update port: x11/xdm: SSH_AUTH_SOCK would not set under using with pam_ssh X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yoshihiko Sarumaru List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2007 16:50:03 -0000 >Number: 113031 >Category: ports >Synopsis: update port: x11/xdm: SSH_AUTH_SOCK would not set under using with pam_ssh >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat May 26 16:50:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Yoshihiko Sarumaru >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD sachiko.yamayuri.org 6.2-STABLE FreeBSD 6.2-STABLE #1: Wed May 2 00:53:20 JST 2007 sarumaru@sachiko.yamayuri.org:/usr/obj/usr/src/sys/VGN-TX92S i386 >Description: I have been used xorg 6.9 on my FreeBSD box. Until I upgraded it to 7.2, after pam_ssh authentication, SSH_AUTH_SOCK environmental variable was inhelited to all the application executed by ~/.xsession (typically xterm). But from xorg 7.2, SSH_AUTH_SOCK will not be set even though ssh-agent is launched by xdm via PAM subsystem. You can access more detail at: https://bugs.freedesktop.org/show_bug.cgi?id=11020 >How-To-Repeat: enable pam_ssh for xdm, then restaert xdm and login with SSH passphrase. >Fix: This patch was provided by an xorg developer (see above Bugzilla URL) and already committed to the main line. --- session.c Fri Feb 2 10:00:51 2007 +++ session.c Fri May 25 23:06:58 2007 @@ -627,6 +627,8 @@ 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 @@ } #endif + +#ifndef HAS_SETUSERCONTEXT if (setuid(verify->uid) < 0) { LogError ("setuid %d (user \"%s\") failed, errno=%d\n", verify->uid, name, errno); >Release-Note: >Audit-Trail: >Unformatted: