From owner-freebsd-current@FreeBSD.ORG Tue Apr 13 01:28:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B05116A4CE; Tue, 13 Apr 2004 01:28:09 -0700 (PDT) Received: from seed.net.tw (sn12.seed.net.tw [139.175.54.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0234443D5E; Tue, 13 Apr 2004 01:28:09 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.121.140] (port=50040 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.23:1) id 1BDJH5-000GZT-1Z; Tue, 13 Apr 2004 16:28:07 +0800 Received: from localhost (localhost [127.0.0.1]) by chihiro.leafy.idv.tw (Postfix) with ESMTP id 64EB519E; Tue, 13 Apr 2004 16:28:06 +0800 (CST) Received: from chihiro.leafy.idv.tw ([127.0.0.1]) by localhost (chihiro.leafy.idv.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02488-04; Tue, 13 Apr 2004 16:28:06 +0800 (CST) Received: by chihiro.leafy.idv.tw (Postfix, from userid 1000) id E9829191; Tue, 13 Apr 2004 16:28:05 +0800 (CST) Date: Tue, 13 Apr 2004 16:28:05 +0800 From: leafy To: Tim Robbins Message-ID: <20040413082805.GA2689@chihiro.leafy.idv.tw> Mail-Followup-To: Tim Robbins , Kris Kennaway , Robert Watson , freebsd-current@freebsd.org References: <20040413055915.GA1423@chihiro.leafy.idv.tw> <20040413061942.GA1705@chihiro.leafy.idv.tw> <20040413071021.GA26454@xor.obsecurity.org> <20040413074732.GA2454@chihiro.leafy.idv.tw> <20040413082628.GA73839@cat.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20040413082628.GA73839@cat.robbins.dropbear.id.au> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at leafy.idv.tw cc: freebsd-current@freebsd.org cc: Robert Watson cc: Kris Kennaway Subject: Re: /usr/libexec/ld-elf.so.1: mount_smbfs: Undefined symbol "vfsisloadable" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 08:28:09 -0000 On Tue, Apr 13, 2004 at 06:26:28PM +1000, Tim Robbins wrote: > There are quite a number of reasons why non-root users can't mount smbfs > shares right now; the first of which is kiconv, as you mentioned, but > there are also problems with the permissions on /dev/nsmb*, suser() checks > in netsmb, and the credentials mount_smbfs passes in to the kernel which > get subsequently rejected by netsmb: > ctx->ct_ssn.ioc_owner = ctx->ct_sh.ioc_owner = 0; /* root */ > > The easiest way to get non-root mounts working is to enable the > #ifdef APPLE code in libsmb and mount_smbfs, then make mount_smbfs > suid root. Whether this is actually any less secure than adding > proper support for user mounts is debatable. > > > Tim Can we modify it to behave similarly to mount_cd9660, where when the mount point is owned and writable by the mounting user, then it is mountable? Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming