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

Re: Moving /var/www with SELinux enforcing

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

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

Let me know how it works out.


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

Attachment: signature.asc
Description: OpenPGP digital signature

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