From owner-freebsd-stable@freebsd.org Thu Jul 30 09:09:29 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 161BE9AE5EC for ; Thu, 30 Jul 2015 09:09:29 +0000 (UTC) (envelope-from marekrud@posteo.de) Received: from mx02.posteo.de (mx02.posteo.de [89.146.194.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7DBC15E0 for ; Thu, 30 Jul 2015 09:09:28 +0000 (UTC) (envelope-from marekrud@posteo.de) Received: from dovecot04.posteo.de (unknown [185.67.36.27]) by mx02.posteo.de (Postfix) with ESMTPS id A80781F4658E; Thu, 30 Jul 2015 11:09:22 +0200 (CEST) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot04.posteo.de (Postfix) with ESMTPSA id 3mhmC55RvvzFpVk; Thu, 30 Jul 2015 11:09:21 +0200 (CEST) From: aeuii@posteo.de To: Ronald Klop , freebsd-stable@freebsd.org Subject: Re: mount_msdosfs: msdosfs_iconv: Operation not permitted In-Reply-To: References: <86mvyen4jz.fsf@posteo.de> Date: Thu, 30 Jul 2015 11:09:21 +0200 Message-ID: <86si8657we.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2015 09:09:29 -0000 On Wed, Jul 29 2015, Ronald Klop wrote: > I think you should make sure the msdosfs_iconv module is already loaded. > Mount_msdosfs loads this module for you if it has the rights. That is why > it works if root has done that ones. > > Add this to rc.conf and reboot: > kld_list="msdosfs_iconv" I had msdosfs_iconv.ko loaded through /boot/loader.conf: msdosfs_iconv_load="YES" (just forgotten to mention it previously) I also verified that it's loaded with kldstat and it still doesn't work. Were you able to reproduce the problem? Thank you and best regards, Stefan > Regards, > Ronald. > > > On Wed, 29 Jul 2015 21:32:00 +0200, wrote: > >> Hello, >> >> it looks like an old issue [1,2,3], but it's bugging me. >> >> Generally, I'm not able to mount msdos file system as a regular user >> with extra charset options (-L) before the superuser. After the >> superuser mounts (and unmounts) the file system, regular users can do it >> to. Below is more info about my system and the detailed steps to >> reproduce the issue. >> >> Thanks for suggestions. >> Stefan >> >> >> [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=109024 >> [2] >> https://forums.freebsd.org/threads/mount_msdosfs-msdosfs_iconv-operation-not-permitted.36897/ >> [3] https://forums.freebsd.org/threads/mount_msdosfs-bug.2668/ >> >> >> >> ** my system >> >> % uname -a >> FreeBSD silver.local 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed >> May 13 06:54:13 UTC 2015 >> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >> >> >> % locale >> LANG=en_GB.UTF-8 >> LC_CTYPE="en_GB.UTF-8" >> LC_COLLATE="en_GB.UTF-8" >> LC_TIME="en_GB.UTF-8" >> LC_NUMERIC="en_GB.UTF-8" >> LC_MONETARY="en_GB.UTF-8" >> LC_MESSAGES="en_GB.UTF-8" >> LC_ALL= >> >> >> % cat /etc/fstab >> /dev/da1 /home/user/mnt/u0 msdosfs >> rw,noauto,noexec,-L=en_GB.UTF-8,-m=600,-M=700 0 0 >> /dev/da1s1 /home/user/mnt/u1 msdosfs >> rw,noauto,noexec,-L=en_GB.UTF-8,-m=600,-M=700 0 0 >> >> >> % sysctl vfs.usermount >> vfs.usermount: 1 >> >> >> >> % cat /etc/rc.conf | grep kiconv >> kiconv_preload="YES" >> kiconv_local_charset="UTF-8" >> kiconv_foreign_charset="UTF-16BE UTF-8" >> kiconv_fstypes="msdosfs" >> >> >> % pkg info|grep kiconv >> kiconvtool-0.97 Tool to preload kernel iconv charset >> tables >> >> >> >> >> ** initially loaded tables >> >> % kiconvtool -d >> UTF-8 -> UTF-16BE >> UTF-16BE -> UTF-8 >> >> >> ** try to mount as a regular user >> >> % mount /home/user/mnt/u1 >> mount_msdosfs: msdosfs_iconv: Operation not permitted >> >> >> >> ** mount fs as root >> >> # mount /home/user/mnt/u1 >> # umount /home/user/mnt/u1 >> >> >> ** tables after root mounted the fs >> >> % kiconvtool -d >> UTF-8 -> UTF-16BE >> UTF-16BE -> UTF-8 >> UTF-8 -> _wctype >> >> >> ** now a regular user can mount too >> >> % mount /home/user/mnt/u1 >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"