SE
Linux不允许我更改符号链接的上下文.我没有任何错误或任何错误.它只是不改变符号链接,我猜这意味着它正在解析符号链接并改变它?
@H_301_2@coderoot是一个符号链接:
chcon -t httpd_sys_content_t / var / coderoot
这使符号链接的上下文保持不变.当我的应用程序引用符号链接SELinux跳入并说不.随着SElinux关闭它工作正常.我怎样才能解决这个问题?
解决方法
从chcon(1)手册页:
-h,--no-dereference affect symbolic links instead of any referenced file