**关闭。**这个问题是not about programming or software development。目前不接受答复。
这个问题似乎不是关于a specific programming problem, a software algorithm, or software tools primarily used by programmers的。如果你认为这个问题与another Stack Exchange site的主题有关,你可以留下评论,解释在哪里可以回答这个问题。
15小时前关门了。
Improve this question
这真的让我很困惑。我已经使用SEmanage很长时间了,从来没有遇到过这个奇怪的问题。
# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/www.domain.ext/html(/.*)?'
# restorecon -Rv /var/www/www.domain.ext/html
输出:
/var/www/www.domain.ext/html/1.html not reset as customized by admin to unconfined_u:object_r:httpd_user_content_t:s0
/var/www/www.domain.ext/html/2.html not reset as customized by admin to unconfined_u:object_r:httpd_user_content_t:s0
/var/www/www.domain.ext/html/3.html not reset as customized by admin to unconfined_u:object_r:httpd_user_content_t:s0
/etc/selinux/targeted/contexts/files/file_contexts.local的内容:
# This file is auto-generated by libsemanage
# Do not edit directly.
/var/www/www.domain.ext/html(/.*)? system_u:object_r:httpd_sys_rw_content_t:s0
重新启动后问题仍然存在。
我已经删除了上下文并重新创建,但无济于事。
# semanage fcontext -d '/var/www/www.domain.ext/html(/.*)?'
# restorecon -Rv /var/www/www.domain.ext/html
/var/www/www.domain.ext/html/1.html not reset as customized by admin to unconfined_u:object_r:httpd_user_content_t:s0
/var/www/www.domain.ext/html/2.html not reset as customized by admin to unconfined_u:object_r:httpd_user_content_t:s0
/var/www/www.domain.ext/html/3.html not reset as customized by admin to unconfined_u:object_r:httpd_user_content_t:s0
1条答案
按热度按时间cwtwac6a1#
您可以使用
-F
选项强制重新标记: