Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753815Ab0ALDVY (ORCPT ); Mon, 11 Jan 2010 22:21:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753707Ab0ALDVX (ORCPT ); Mon, 11 Jan 2010 22:21:23 -0500 Received: from lennier.cc.vt.edu ([198.82.162.213]:52626 "EHLO lennier.cc.vt.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753384Ab0ALDVW (ORCPT ); Mon, 11 Jan 2010 22:21:22 -0500 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Casey Schaufler Cc: Tetsuo Handa , michael@laptop.org, pavel@ucw.cz, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, andi@firstfloor.org, david@lang.hm, socketcan@hartkopp.net, alan@lxorguk.ukuu.org.uk, herbert@gondor.apana.org.au, bdonlan@gmail.com, zbr@ioremap.net, cscott@cscott.net, jmorris@namei.org, ebiederm@xmission.com, bernie@codewiz.org, mrs@mythic-beasts.com, randy.dunlap@oracle.com, xiyou.wangcong@gmail.com, sam@synack.fr, serue@us.ibm.com, viro@ZenIV.linux.org.uk Subject: Re: [PATCH 2/3] Security: Implement disablenetwork semantics. (v4) In-Reply-To: Your message of "Sun, 10 Jan 2010 17:46:49 PST." <4B4A8309.9090801@schaufler-ca.com> From: Valdis.Kletnieks@vt.edu References: <20100110215848.GA26609@elf.ucw.cz> <20100110224010.GA3825@heat> <201001111007.EAG82373.VHFQSLFOFMOOJt@I-love.SAKURA.ne.jp> <4B4A8309.9090801@schaufler-ca.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1263266388_4979P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 11 Jan 2010 22:19:48 -0500 Message-ID: <6161.1263266388@localhost> X-Mirapoint-Received-SPF: 128.173.34.103 localhost Valdis.Kletnieks@vt.edu 2 pass X-Mirapoint-IP-Reputation: reputation=neutral-1, source=Fixed, refid=n/a, actions=MAILHURDLE SPF TAG X-Junkmail: UCE(50) X-Junkmail-Info: (45) HELO_LOCALHOST X-Junkmail-Status: score=50/50, host=steiner.cc.vt.edu X-Junkmail-SD-Raw: score=bulk(0), refid=str=0001.0A020205.4B4BEA56.0101,ss=3,fgs=0, ip=0.0.0.0, so=2009-09-22 00:05:22, dmn=2009-09-10 00:05:08, mode=multiengine X-Junkmail-IWF: false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2048 Lines: 50 --==_Exmh_1263266388_4979P Content-Type: text/plain; charset=us-ascii On Sun, 10 Jan 2010 17:46:49 PST, Casey Schaufler said: > It's much worse than that. A user that has been network disabled > who tries using ls may find that it goes looking for the network > on each name lookup and has to wait for a timeout for each. Ya know Casey - I learned back in 1986 or so that if you set up a SunOS 3.2 cluster using Yellow Pages, professors who managed to unplug the AUI cable on the back of their Sun 3/50 would notice things blowing chunks. I have to admit that 24 years ago I told them "Well don't do that then", and I have to say the same thing for anybody running a login shell network-disabled. Now, a more subtle point is that a *program* may call getuserbyname() or getuserbyuid() and be surprised when it times out - but that's a different issue than a network-deprived user calling /bin/ls. > Then, if there are local file entries that differ > from the "official" network account values when the library > functions finally fall back on the local values you get the wrong > names for file owners. The sysadmin who set that up already had the bullet in the chamber and the gun pointed at their feet. This is another "we knew better a quarter century ago" issue - SunOS allowed '+:' at the end of /etc/passwd to merge in the YP database, and Sun actively discouraged the sort of "local userid overlaps the YP userid space" misconfiguration you mention. --==_Exmh_1263266388_4979P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFLS+pUcC3lWbTT17ARAnO9AJ9zSKlp9hpWTOsBYeu2niKQ8xWAkQCgncR0 Hl+wVA8OgqeZUd04P2KiCK4= =dbY3 -----END PGP SIGNATURE----- --==_Exmh_1263266388_4979P-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/