SELinux 符号链接?

Jos*_*eld 7 symlink

SELinux 不允许我更改符号链接的上下文。我没有得到任何错误或任何东西。它只是不改变符号链接,我猜这意味着它正在解析符号链接并改变它?coderoot 是一个符号链接:

chcon -t httpd_sys_content_t /var/coderoot

这使符号链接的上下文保持不变。当我的应用程序引用符号链接时,SELinux 跳入并说不。关闭 SElinux 后它工作正常。我怎样才能解决这个问题?

Ign*_*ams 12

chcon(1)手册页:

   -h, --no-dereference
          affect symbolic links instead of any referenced file
Run Code Online (Sandbox Code Playgroud)