From owner-freebsd-current@FreeBSD.ORG Tue Apr 13 01:22:26 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 AD8DB16A4CE; Tue, 13 Apr 2004 01:22:26 -0700 (PDT) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id D957C43D3F; Tue, 13 Apr 2004 01:22:25 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (211.26.202.162) by smtp02.syd.iprimus.net.au (7.0.024) id 402CF870013FAE2E; Tue, 13 Apr 2004 18:22:24 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 09B7541DC; Tue, 13 Apr 2004 18:26:29 +1000 (EST) Date: Tue, 13 Apr 2004 18:26:28 +1000 From: Tim Robbins To: Kris Kennaway , Robert Watson , freebsd-current@freebsd.org Message-ID: <20040413082628.GA73839@cat.robbins.dropbear.id.au> References: <20040413055915.GA1423@chihiro.leafy.idv.tw> <20040413061942.GA1705@chihiro.leafy.idv.tw> <20040413071021.GA26454@xor.obsecurity.org> <20040413074732.GA2454@chihiro.leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040413074732.GA2454@chihiro.leafy.idv.tw> User-Agent: Mutt/1.4.1i 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:22:26 -0000 On Tue, Apr 13, 2004 at 03:47:32PM +0800, leafy wrote: > On Tue, Apr 13, 2004 at 12:10:21AM -0700, Kris Kennaway wrote: > > Sounds like you might not have all the required kernel support. > > Compare your kernel to GENERIC. > > > > Kris > 2 seperate issues here. > > 1. smbfs.ko isn't auto loaded, this is changed by mux@ 's commit to sync > vehaviour with other mount_*, which should load smbfs.ko upon execution. > It doesn't now. (it worked with the old binary though). This is the one > I think should be fixed somehow. > > 2. cannot mount share as non-root, this had always been an issue, but > more verbose error message points the finger at kernel iconv setup now. > This one didn't work with the old verion either. 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