Re: Moving /var/www with SELinux enforcing

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

 



Tim Largy wrote:
> Because I have limited space in /var and a program that wants to put
> gigabytes of data in /var/www, I want to move that directory
> (/var/www) elsewhere and simlink to it. What's the proper way to do
> this with SELinux enforcing?
> 
> Tim
> 
If I have this correct, you would want to add a rule for the new
location.

From SELinux administration:

File Specification - <path to new location>(/.*)?
File Type - all files
SELinux Type - httpd_sys_content_t
MLS - s0

You may also have to the modify Apache config to allow symlinks.

One other possibility would be to mount the new directory tree on a
mount point in /var/www using "mount --bind olddir newdir". But I
have not played with this - you may also have to add
"context=system_u:object_r:httpd_sys_content_t:s0" to the mount
command. If it works you can add it to /etc/fstab.

mount --bind olddir newdir -o
context=system_u:object_r:httpd_sys_content_t:s0

Let me know how it works out.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux