Re: [OT] how to share a directory under ntfs mount point with selinux enabled?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri Jan 20 16:08:49 UTC 2012 David Quigley wrote:
>>The best thing that you will be
>> able to do is make it so your entire ntfs-3g mount is labeled
>> samba_share_t and then just export the folders you want. You should
>> be
>> able to do this by adding -o context=system_u:object_r:samba_share_t
>> to your mount command for your ntfs-3g mount.
>
> I just looked back at an old post I made on this very issue and it
> seems that there might be a problem. Unless it has been fixed the fuse
> mount program doesn't necessarially pass the context mount option down
> to the kernel to be handled. So the fix I suggested above might not
> work. They may have fixed that problem so give it a try anyway but if
> the mount option is not passed down there isn't much you can do about
> it.
>
> Dave

Unfortunately putting the line
/dev/sda1               			/w7                  ntfs-3g
context=system_u:object_r:samba_share_t       1 0

I get this when trying to mount:
ntfs-3g-mount: mount failed: Invalid argument

And in messages:
kernel: [14596.016616] SELinux:
security_context_to_sid(system_u:object_r:samba_share_t) failed for
(dev sda1, type fuseblk) errno=-22
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux