Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754148Ab0AJWhw (ORCPT ); Sun, 10 Jan 2010 17:37:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754067Ab0AJWhw (ORCPT ); Sun, 10 Jan 2010 17:37:52 -0500 Received: from lists.laptop.org ([18.85.2.145]:58549 "EHLO mail.laptop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753955Ab0AJWhv (ORCPT ); Sun, 10 Jan 2010 17:37:51 -0500 Date: Sun, 10 Jan 2010 17:40:10 -0500 From: Michael Stone To: Pavel Machek Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, Andi Kleen , David Lang , Oliver Hartkopp , Alan Cox , Herbert Xu , Valdis Kletnieks , Bryan Donlan , Evgeniy Polyakov , "C. Scott Ananian" , James Morris , "Eric W. Biederman" , Bernie Innocenti , Mark Seaborn , Randy Dunlap , =?iso-8859-1?Q?Am=E9rico?= Wang , Tetsuo Handa , Samir Bellabes , Casey Schaufler , "Serge E. Hallyn" , Pavel Machek , Al Viro , Michael Stone Subject: Re: [PATCH 2/3] Security: Implement disablenetwork semantics. (v4) Message-ID: <20100110224010.GA3825@heat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20100110215848.GA26609@elf.ucw.cz> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 32 Pavel Machek wrote: > You can trivialy make disablenetwork disable setuid exec, too. That > will introduce better isolation facilities, but not introduce any new > security problems. > > For some reason, you don't want to do the obviously right thing. I don't want to do it because it's not "obviously right" to me: I *have* setuid programs that I want to be able to raise privileges when network-disabled. I *don't have* any setuid programs that will be harmed by disablenetwork. Examples of software that I want to be able to gain privileges normally include: rainbow, which requires privilege in order to add new accounts to the system and in order to call setuid() but which does not require networking privileges. qmail-queue, which uses setuid to deliver mail that it reads from fd 0 to local users and other old favorites like mount, fusermount, X, and, presumably, any audio software that wants to go realtime. Kind regards, Michael -- 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/