From owner-freebsd-security@FreeBSD.ORG Tue Sep 3 11:31:13 2013 Return-Path: Delivered-To: freebsd-security@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8FC19E7E; Tue, 3 Sep 2013 11:31:13 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 4D7702BFF; Tue, 3 Sep 2013 11:31:13 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id 7AE6543F4; Tue, 3 Sep 2013 11:31:12 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id 87FC4339EF; Tue, 3 Sep 2013 13:30:43 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Lev Serebryakov Subject: Re: OpenSSH, PAM and kerberos References: <86sixrwdcv.fsf@nine.des.no> <20130830131455.GW3796@zxy.spb.ru> <8661uj9lc6.fsf@nine.des.no> <20130902181754.GD3796@zxy.spb.ru> <867geywdfc.fsf@nine.des.no> <20130903083301.GF3796@zxy.spb.ru> <86y57euu8y.fsf@nine.des.no> <20130903093756.GG3796@zxy.spb.ru> <86ppsqutw7.fsf@nine.des.no> <998724759.20130903142637@serebryakov.spb.ru> <20130903103922.GI3796@zxy.spb.ru> <6110257289.20130903145034@serebryakov.spb.ru> Date: Tue, 03 Sep 2013 13:30:43 +0200 In-Reply-To: <6110257289.20130903145034@serebryakov.spb.ru> (Lev Serebryakov's message of "Tue, 3 Sep 2013 14:50:34 +0400") Message-ID: <86d2oquopo.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-security@FreeBSD.org, Slawa Olhovchenkov X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 11:31:13 -0000 Lev Serebryakov writes: > des@ suggests to have ability to pass env variables from authorization > daemon, but anyway, pam_setcred() should be called by shell process > (or its parent), and not any process in system, am I right? Everything pam_setcred() does can be done in a separate process, and the result returned to the application using sendmsg(). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no