From owner-freebsd-current@FreeBSD.ORG Tue Dec 2 22:09:05 2003 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 D3DBA16A4CE for ; Tue, 2 Dec 2003 22:09:05 -0800 (PST) Received: from relay.butya.kz (butya-gw.butya.kz [212.19.129.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB71843F3F for ; Tue, 2 Dec 2003 22:09:02 -0800 (PST) (envelope-from bp@butya.kz) Received: by relay.butya.kz (Postfix, from userid 1000) id 9195A5852; Wed, 3 Dec 2003 12:08:52 +0600 (ALMT) Date: Wed, 3 Dec 2003 12:08:52 +0600 From: Boris Popov To: Rudolf Cejka Message-ID: <20031203060852.GT42142@vertex.kz> References: <20031202163805.GA40233@fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031202163805.GA40233@fit.vutbr.cz> User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: Re: User mounts could not use character conversions (libkiconv is just for roots) 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: Wed, 03 Dec 2003 06:09:05 -0000 On Tue, Dec 02, 2003 at 05:38:05PM +0100, Rudolf Cejka wrote: > > I have found, that user mounts using libkiconv.so (msdosfs, cd9660, ...) > could not use character code conversions, beause writing to sysctl > kern.iconv.add is allowed just for root. Personally, I have created > small patch, which allows to change kern.iconv.add to anybody, so it does > work for me. Does anybody know, if there are security drawbacks and if > it can or can not be commited? Probably it is not a good idea to allow users to load kernel iconv tables because one can waste a lot of memory by loading of all possible conversion schemes. The better solution is to add some kind of preload ability which could be used on startup. -- Boris Popov http://rbp.euro.ru