• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Symlinking new domainpath and selinux deny

H

Herby

Guest
After migrating from 7.5.4 to 8.1 the domain path changed. So all php scripts (ie Mambo, Joomla, phpBB, osCommerce...) broke due to the abolute path given in their config files.

So I tried to symlink the dir with

ln -s /var/www/ /home/httpd

but then selinux generated a deny rule:

audit(1170486615.510:46): avc: denied { read } for pid=14851 comm="httpd" name="vhosts" dev=hdg1 ino=8011781 scontext=user_u:system_r:httpd_t tcontext=root:eek:bject_r:user_home_t tclass=lnk_file

So again I generated a selinux rule with

tail -n 5 /var/log/messages | /usr/bin/audit2allow

allow httpd_t home_root_t:lnk_file getattr;

which I wrote in
/etc/selinux/targeted/src/policy/domains/program/apache.te
and loaded the config again with
make -C /etc/selinux/targeted/src/policy reload

But still the deny rule occurs in syslog.

What did I miss?
 
Back
Top