How to HTTP Serve Fedora Distribution

Paul Howarth paul at city-fan.org
Wed Nov 26 15:39:33 UTC 2008


David Highley wrote:
> How can we set up HTTP serving of Fedora distribution since we can not
> label the files in the ISO? What we have tried:
> - copy ISO file into web tree
> - loopback mount the ISO to /mnt
> - symlink /mnt into the web tree
> or
> - create directory in web tree
> - loopback mount the ISO to directory in web tree
> 
> Selinux blocks access to the distribution. The only solution we are
> aware of is to drop the pants on selinux by going to permissive mode.

I put the ISO file in my web tree and loopback mount it with a context 
option, e.g. in fstab:

/srv/nb/distros/fc10/os/x86_64/iso/Fedora-10-x86_64-DVD.iso 
/srv/nb/distros/fc10/os/x86_64/dvd iso9660 
_netdev,ro,loop,fscontext=system_u:object_r:public_content_t:s0 0 0
/srv/nb/distros/fc10/os/i386/iso/Fedora-10-i386-DVD.iso 
/srv/nb/distros/fc10/os/i386/dvd iso9660 
_netdev,ro,loop,fscontext=system_u:object_r:public_content_t:s0 0 0

The resulting hierarchy can be exported using ftp, http, rsync, samba, etc.

Paul.




More information about the fedora-selinux-list mailing list