Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context option is ignored #172

Open
Chaz6 opened this issue Jul 2, 2021 · 1 comment
Open

Context option is ignored #172

Chaz6 opened this issue Jul 2, 2021 · 1 comment

Comments

@Chaz6
Copy link

Chaz6 commented Jul 2, 2021

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
@relan
Copy link
Owner

relan commented Jul 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants