%20%E4%B8%8D%E5%85%81%E8%AE%B8%E9%80%9A%E8%BF%87%E4%B8%8A%E4%BC%A0%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC.png)
我正在尝试让我的 Satellite 5.7 服务器安装更加安全。我想关闭运行脚本的功能而不https://mysatserver/pub/upload/up
破坏卫星。
目录看起来像这样
-rw-r--r--. root root unconfined_u:object_r:httpd_sys_content_t:s0 index.html
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 up
-rw-r--r--. root root unconfined_u:object_r:httpd_sys_content_t:s0 upload.php
我想做的是确保没有脚本可以在 /up 下运行。
我的想法是:
- 更改 selinux 上下文类型?
- Apache 配置文件中是否有任何设置可以关闭此功能?