From owner-freebsd-arch@FreeBSD.ORG Thu May 24 00:55:31 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 2A4D216A400 for ; Thu, 24 May 2007 00:55:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outS.internet-mail-service.net (outS.internet-mail-service.net [216.240.47.242]) by mx1.freebsd.org (Postfix) with ESMTP id 1A6E313C455 for ; Thu, 24 May 2007 00:55:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Wed, 23 May 2007 17:55:30 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 04294125A27; Wed, 23 May 2007 17:55:29 -0700 (PDT) Message-ID: <4654E287.3040206@elischer.org> Date: Wed, 23 May 2007 17:55:35 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Colin Percival References: <7158.1179947572@critter.freebsd.dk> <4654E083.10807@freebsd.org> In-Reply-To: <4654E083.10807@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Poul-Henning Kamp , "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:55:31 -0000 Colin Percival wrote: > 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. How about a bit in the headers of a program that are set by the Makefile. If the bit is not set then the elf program executor sets a bit that forbids exec from ever running.. how many programs actually need to be able to run exec.. the average exploit does an exec(/bin/sh) > > Colin Percival > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"