relan / exfat

Free exFAT file system implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Context option is ignored

Chaz6 opened this issue · comments

I want to be able to export a mount as a samba share when selinux is active, however it seems to ignore the context option:-

$ uname -r
5.12.6-1.el7.elrepo.x86_64
$ sudo mount -t exfat -o uid=chaz,gid=chaz,context="system_u:object_r:samba_share_t:s0" /dev/sdc1 /mnt/usb-hdd
FUSE exfat 1.2.7
$ ls -lZd /mnt/usb-hdd/
drwxrwxrwx. 1 chaz chaz system_u:object_r:fusefs_t:s0 131072 Jan  1  1970 /mnt/usb-hdd
commented

Looks like SELinux-related options just need to be passed through to fuse: libfuse/libfuse@9448849