Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

SELinux is not allowing me to change the context of a symlink. I get no errors or anything. It just doesn't change the symlink, which I am guessing means it is resolving the symlink and changing that instead? coderoot is a symlink:

chcon -t httpd_sys_content_t /var/coderoot

This leaves the context of the symlink the same. When my application references the symlink SELinux jumps in and says no. With SElinux off it works fine. How can I fix this?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

From the chcon(1) man page:

   -h, --no-dereference
          affect symbolic links instead of any referenced file
share|improve this answer
    
You sir are awesome. Thank you very much. –  Joshua Enfield Jun 30 '10 at 20:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.