Re: Serving data from a DVD via httpd

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

 



Mikkel L. Ellertson skrev:
Uno Engborg wrote:
I'm trying to mount a DVD inside /var/www/html and serve it using httpd.
The problem is that the DVD have the wrong SELinux context

I try to do somethng like this:

mount -o context=system_u:object_r:httpd_sys_content_t,ro /dev/cdrom /var/www/html/mymountpoint

but that doen't change the context on the mouned dvd, and consequently, apache fails to serve it.
If I run audit2allow it tells me to:
allow httpd_t iso9660_t:dir getattr;

I supose I could make such a module, but I rather not as there might be more dvds mounted elsewhere
in the system that should remain protected from apache.

Ideas anyone?

Regards
Uno Engborg

The context is wrong - try replacing it with:

context=system_u:object_r:httpd_sys_content_t:s0

The :s0 is important.
Yes it is!
Thanks for spottin it

/uno

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux