From owner-freebsd-arch@FreeBSD.ORG Thu Jan 18 15:14:32 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 3A22216A407; Thu, 18 Jan 2007 15:14:32 +0000 (UTC) (envelope-from allbery@ece.cmu.edu) Received: from bache.ece.cmu.edu (BACHE.ECE.CMU.EDU [128.2.129.23]) by mx1.freebsd.org (Postfix) with ESMTP id 1100313C457; Thu, 18 Jan 2007 15:14:32 +0000 (UTC) (envelope-from allbery@ece.cmu.edu) Received: by bache.ece.cmu.edu (Postfix, from userid 953) id 4608C91; Thu, 18 Jan 2007 09:49:22 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on filt2.ece.cmu.edu X-Spam-Level: X-Spam-Status: No, score=0.0 required=6.0 tests=BAYES_50 autolearn=no version=3.1.4 Received: from [10.9.204.128] (dsl093-061-215.pit1.dsl.speakeasy.net [66.93.61.215]) by bache.ece.cmu.edu (Postfix) with ESMTP id 4F71B8E; Thu, 18 Jan 2007 09:49:21 -0500 (EST) In-Reply-To: References: <20070118134936.GA7391@crodrigues.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Brandon S. Allbery KF8NH" Date: Thu, 18 Jan 2007 09:49:19 -0500 To: "Andrew Pantyukhin" X-Mailer: Apple Mail (2.752.2) Cc: freebsd-current@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFC] mount(8) can figure out fstype 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, 18 Jan 2007 15:14:32 -0000 On Jan 18, 2007, at 9:14 , Andrew Pantyukhin wrote: > On 1/18/07, Craig Rodrigues wrote: >> In this patch, I only modified the userland mount program. >> If the user does not specify "-t vfstype" to mount, >> the mount program gets a list of local filesystems from the >> vfs.conflist >> sysctl. It then tries to mount the filesystem, always >> starting with "ufs", and then iterating through the list if >> the nmount() fails with EINVAL. > > I would love to have this usability enhancement around! > > 1. Are there any (what are the) security implications? > 2. "mount -t auto" might be closer to POLA ISTR from back when Linux added this that the bigger problem is that the msdos filesystem may sometimes accept filesystems it shouldn't, because the only way to catch an invalid filesystem is heuristics. -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH