Date: Mon, 22 Jan 2018 21:15:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225389] mount_msdosfs: msdosfs_iconv: Operation not permitted Message-ID: <bug-225389-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225389 Bug ID: 225389 Summary: mount_msdosfs: msdosfs_iconv: Operation not permitted Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: aeuii@posteo.de "mount_msdosfs: msdosfs_iconv: Operation not permitted" occurs when mounting mounting msdosfs with flags "-L=3Den_GB.UTF-8". I confirmed can confirm it on 11.1-RELEASE-p6 and in a VirtualBox using FreeBSD-11.1-RELEASE-amd64.vhd image. Environment and steps to reproduce: % uname -a FreeBSD myhost 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12= :40 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERI= C=20 amd64 % locale LANG=3Den_GB.UTF-8 LC_CTYPE=3D"en_GB.UTF-8" LC_COLLATE=3D"en_GB.UTF-8" LC_TIME=3D"en_GB.UTF-8" LC_NUMERIC=3D"en_GB.UTF-8" LC_MONETARY=3D"en_GB.UTF-8" LC_MESSAGES=3D"en_GB.UTF-8" LC_ALL=3Den_GB.UTF-8 % cat /boot/loader.conf | grep iconv msdosfs_iconv_load=3D"YES" libiconv_load=3D"YES" % cat /etc/fstab | grep UTF-8 /dev/da1 /home/myuser/mnt/u0 msdosfs rw,noauto,noexec,-L=3Den_GB.UTF-8,-m=3D600,-M=3D700 0 0 /dev/da1s1 /home/myuser/mnt/u1 msdosfs rw,noauto,noexec,-L=3Den_GB.UTF-8,-m=3D600,-M=3D700 0 0 % sysctl vfs.usermount vfs.usermount: 1 % cat /etc/rc.conf | grep kiconv kiconv_preload=3D"YES" kiconv_local_charset=3D"UTF-8" kiconv_foreign_charset=3D"UTF-16BE UTF-8" kiconv_fstypes=3D"msdosfs" % pkg info|grep kiconv kiconvtool-0.98 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225389-8>