From owner-freebsd-arch@FreeBSD.ORG Thu May 24 00:47:17 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D9FA16A400 for ; Thu, 24 May 2007 00:47:17 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id F20C113C44B for ; Thu, 24 May 2007 00:47:16 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd2mr3so.prod.shaw.ca (pd2mr3so-qfe3.prod.shaw.ca [10.0.141.108]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JII00D2RSUPG5A0@l-daemon> for freebsd-arch@freebsd.org; Wed, 23 May 2007 18:47:13 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd2mr3so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JII00FCWSUNBF00@pd2mr3so.prod.shaw.ca> for freebsd-arch@freebsd.org; Wed, 23 May 2007 18:47:14 -0600 (MDT) Received: from hexahedron.daemonology.net ([24.82.18.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0JII002U3SUMJC20@l-daemon> for freebsd-arch@freebsd.org; Wed, 23 May 2007 18:47:10 -0600 (MDT) Received: (qmail 3241 invoked from network); Thu, 24 May 2007 00:46:59 +0000 Received: from unknown (HELO hexahedron.daemonology.net) (127.0.0.1) by localhost with SMTP; Thu, 24 May 2007 00:46:59 +0000 Date: Wed, 23 May 2007 17:46:59 -0700 From: Colin Percival In-reply-to: <7158.1179947572@critter.freebsd.dk> To: Poul-Henning Kamp Message-id: <4654E083.10807@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.95.0 References: <7158.1179947572@critter.freebsd.dk> User-Agent: Thunderbird 2.0.0.0 (X11/20070511) Cc: "freebsd-arch@freebsd.org" Subject: Re: RFC: Removing file(1)+libmagic(3) from the base system X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 00:47:17 -0000 Poul-Henning Kamp wrote: > In message <46546E16.9070707@freebsd.org>, Colin Percival writes: >> I'd like to remove file(1) and libmagic(3) from the FreeBSD base system >> for the following reasons: > > One mitigating option would be to open the magic file and input > and sequester the file process in a jail. Last time I checked, unprivileged processes couldn't jail themselves. We could make file(1) setuid root and use a privilege separation approach, but I'm not convinced that would be a net win. Colin Percival