[Bug 225389] mount_msdosfs: msdosfs_iconv: Operation not permitted
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jan 22 21:15:30 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225389
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 at FreeBSD.org
Reporter: aeuii at posteo.de
"mount_msdosfs: msdosfs_iconv: Operation not permitted" occurs when mounting
mounting msdosfs with flags "-L=en_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 at 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=en_GB.UTF-8
% cat /boot/loader.conf | grep iconv
msdosfs_iconv_load="YES"
libiconv_load="YES"
% cat /etc/fstab | grep UTF-8
/dev/da1 /home/myuser/mnt/u0 msdosfs
rw,noauto,noexec,-L=en_GB.UTF-8,-m=600,-M=700 0 0
/dev/da1s1 /home/myuser/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.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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list