simple question with home serviing ruby on rails web site

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

 



I'm running in permissive mode so all I'm getting is warnings but I'm
wondering the best way to solve this...

error every time httpd starts...

SELinux has denied httpd access to potentially mislabeled file(s)
(./svn-new). This means that SELinux will not allow httpd to use these
files. It is common for users to edit files in their home directory or
tmp directories and then move (mv) them to system directories. The
problem is that the files end up with the wrong file context which
confined applications are not allowed to access. Allowing AccessIf you
want httpd to access this files, you need to relabel them using
restorecon -v './svn-new'. You might want to relabel the entire
directory using restorecon -R -v './svn-new'. Additional
InformationSource Context:
system_u:system_r:httpd_t:SystemLow-SystemHighTarget Context:
user_u:object_r:user_home_tTarget Objects:  ./svn-new [ dir ]Source:
httpdSource Path:  /usr/sbin/httpd


/home/craig/svn-new is an svn checkout and is the 'RAILS ROOT' directory
for the web server.

$ ls -ldZ /home/craig/svn-new/
drwxrwxr-x  craig craig
user_u:object_r:user_home_t      /home/craig/svn-new/

This is on Fedora 9. In the past, I could have used
system-config-security and set selinux to allow web page serving from
user home directories but I don't see that tool any more.

What's the best way to handle this?

Craig


--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux