From owner-freebsd-current@FreeBSD.ORG Fri Jun 25 12:15:42 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 3117016A4CE for ; Fri, 25 Jun 2004 12:15:42 +0000 (GMT) Received: from kazi.fit.vutbr.cz (kazi.fit.vutbr.cz [147.229.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9174F43D54 for ; Fri, 25 Jun 2004 12:15:41 +0000 (GMT) (envelope-from cejkar@fit.vutbr.cz) Received: from kazi.fit.vutbr.cz (localhost [127.0.0.1]) by kazi.fit.vutbr.cz (8.12.11/8.12.11) with ESMTP id i5PCFWpV032151 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 25 Jun 2004 14:15:32 +0200 (CEST) Received: (from cejkar@localhost) by kazi.fit.vutbr.cz (8.12.11/8.12.5/Submit) id i5PCFUwV032145; Fri, 25 Jun 2004 14:15:30 +0200 (CEST) X-Authentication-Warning: kazi.fit.vutbr.cz: cejkar set sender to cejkar@fit.vutbr.cz using -f Date: Fri, 25 Jun 2004 14:15:30 +0200 From: Rudolf Cejka To: Simon Barner Message-ID: <20040625121530.GA30484@fit.vutbr.cz> References: <20040625100457.GA87998@zi025.glhnet.mhn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040625100457.GA87998@zi025.glhnet.mhn.de> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Boris Popov cc: freebsd-current@freebsd.org Subject: Re: vfs.usermount not working anymore on SMB shares? 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: Fri, 25 Jun 2004 12:15:42 -0000 Simon Barner wrote (2004/06/25): > > The simplest solution is to preload all necessary conversion > > tables via creating some mount points as root. iconv interface will reuse > > them for all subsequent user mounts. > > The more proper solution will be an userland utility which can > > preload tables at boot time. > > And an accompanying rc.conf hook, like iconv_preload=... > > I like that idea a lot, and I'll see that I'll get it implemented > soon[tm]. You can see http://www.ryu16.org/FreeBSD/kiconv/ - there is something already and I use it successfully for long time. Unfortunately, it is not in src and nor in ports yet. I had plans to ask R. Imura about iconv kernel implementation, because it seems to me that it has off-by-one bugs and it looks very insecure, because root can unwittingly overwrite kernel memory, but it seems to me that he is doing different things now. I have in my todo list, that /usr/src/lib/libkiconv/xlat16_sysctl.c if (strlen(from) > ICONV_CSNMAXLEN || strlen(to) > ICONV_CSNMAXLEN) should be if (strlen(from) >= ICONV_CSNMAXLEN || strlen(to) >= ICONV_CSNMAXLEN) and there is no length checking of from and to fields in /usr/src/sys/libkern/iconv.c, when table is added, however I did not check it more carefully yet (and it is falling lower and lower in my todo list :o(. -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic