RHEL 9.1 - SELinux は、/usr/local/bin/php が /web/inc/init_db.inc.php ファイルへの読み取りアクセスをブロックします。

RHEL 9.1 - SELinux は、/usr/local/bin/php が /web/inc/init_db.inc.php ファイルへの読み取りアクセスをブロックします。

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

私はこのような問題を経験したことがありません。どうすればいいですか?

ベストアンサー1

おすすめ記事