我在Python中创build了一个CGI,除非我尝试写入用户家中的文件,否则它将起作用。 我激活了allow_httpd_anon_write和allow_http_sys_script_anon_write为graphics工具来pipe理SELinux。 然后,我home , home/user和home/user /home/user/log_file.txt public_content_rw_t 。 据我所知,这是足够的,还有什么我必须做的? 写另一个职位更简单吗?