我想按照 SELinux 所说的解决这个问题。
SELinux is preventing /usr/local/bin/php from read access on the file /web/inc/init_db.inc.php.
控制台的输出是:
[root@rhel ~]# ausearch -c 'php' --raw | audit2allow -M my-php
compilation failed:
my-php.te:15:ERROR 'syntax error' at token 'mlsconstrain' on line 15:
mlsconstrain file { ioctl read lock execute execute_no_trans } ((h1 dom h2 -Fail-) or (t1 != mcs_constrained_type -Fail-) ); Constraint DENIED
mlsconstrain file { write setattr append unlink link rename } ((h1 dom h2 -Fail-) or (t1 != mcs_constrained_type -Fail-) ); Constraint DENIED
/usr/bin/checkmodule: error(s) encountered while parsing configuration
我以前从未遇到过这个问题,我该怎么办?