From owner-freebsd-current@FreeBSD.ORG Tue Feb 24 16:02:46 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E1A016A4CE for ; Tue, 24 Feb 2004 16:02:46 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 976D243D31 for ; Tue, 24 Feb 2004 16:02:45 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.11/8.12.11) with ESMTP id i1P02aC3033062; Wed, 25 Feb 2004 03:02:36 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.11/8.12.11/Submit) id i1P02ZLe033061; Wed, 25 Feb 2004 03:02:36 +0300 (MSK) (envelope-from ache) Date: Wed, 25 Feb 2004 03:02:34 +0300 From: Andrey Chernov To: Colin Percival , freebsd-current@FreeBSD.ORG Message-ID: <20040225000231.GB32548@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Colin Percival , freebsd-current@FreeBSD.ORG References: <6.0.1.1.1.20040223171828.03de8b30@imap.sfu.ca> <20040224223659.GB69570@VARK.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040224223659.GB69570@VARK.homeunix.com> User-Agent: Mutt/1.5.5.1i X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.4; VDF 6.24.0.17 Subject: Re: What to do about nologin(8)? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 00:02:46 -0000 On Tue, Feb 24, 2004 at 02:36:59PM -0800, David Schultz wrote: > (1) Fix login(1) so that it disables the -p option when the target > user's shell is not in /etc/shells (unless the invoking user > is root), and No, just disable LD_* variables only _in_any_case_ in the login(1) (and maybe in the other login-likes). > (2) Make nologin(8) setgid nobody, so rtld ignores LD_LIBRARY_PATH. No, please make it plain dynamical executable with no special privs, like the rest. I already explain my arguments (i.e. "why") in the previois post. -- Andrey Chernov | http://ache.pp.ru/