raytracy
Basic Pleskian
CentOS 7.5 + Plesk 17.5.3
My mod_security throw a lot of error in log when I upgraded from 7.4 to 7.5:
Message: collections_remove_stale: Failed to access DBM file "/var/asl/data/msa/global": Permission denied
Apache-Error: [file "apache2_util.c"] [line 271] [level 3] [client %s] ModSecurity: %s%s [uri "%s"]%s
Apache-Handler: proxy:unix:///var/www/vhosts/system/idngirl.com.tw/php-fpm.sock|fcgi://127.0.0.1:9000
And there are SELinux error in /var/log/messages:
May 16 11:11:45 migo-blue setroubleshoot: SELinux is preventing /usr/sbin/httpd from getattr access on the file /var/asl/data/msa/global.dir. For complete SELinux messages run: sealert -l a63b5e2f-db5c-4791-bbaf-37d46cd5d393
May 16 11:11:45 migo-blue python: SELinux is preventing /usr/sbin/httpd from getattr access on the file /var/asl/data/msa/global.dir.#012#012***** Plugin catchall_labels (83.8 confidence) suggests *******************#012#012If you want to allow httpd to have getattr access on the global.dir file#012Then you need to change the label on /var/asl/data/msa/global.dir#012Do#012# semanage fcontext -a -t FILE_TYPE '/var/asl/data/msa/global.dir'#012where FILE_TYPE is one of the following: (....there are a lots of file type follow...)
It seems setenforce 0 could stop error in mod_security log, but still produce a lots of SELinux event.
I have try these command:
ausearch -c 'httpd' --raw | audit2allow -M my-httpd
semodule -i my-httpd.pp
ausearch -x /usr/sbin/httpd --raw | audit2allow -D -M my-httpd
semodule -i my-httpd.pp
plesk repair installation -y (which help to restore SELinux context)
But did not solve this problem
How can I fix this issue with SELinux enforced?
(What is correct SELinux FILE_TYPE for /var/asl/data/msa/global.dir?)
My mod_security throw a lot of error in log when I upgraded from 7.4 to 7.5:
Message: collections_remove_stale: Failed to access DBM file "/var/asl/data/msa/global": Permission denied
Apache-Error: [file "apache2_util.c"] [line 271] [level 3] [client %s] ModSecurity: %s%s [uri "%s"]%s
Apache-Handler: proxy:unix:///var/www/vhosts/system/idngirl.com.tw/php-fpm.sock|fcgi://127.0.0.1:9000
And there are SELinux error in /var/log/messages:
May 16 11:11:45 migo-blue setroubleshoot: SELinux is preventing /usr/sbin/httpd from getattr access on the file /var/asl/data/msa/global.dir. For complete SELinux messages run: sealert -l a63b5e2f-db5c-4791-bbaf-37d46cd5d393
May 16 11:11:45 migo-blue python: SELinux is preventing /usr/sbin/httpd from getattr access on the file /var/asl/data/msa/global.dir.#012#012***** Plugin catchall_labels (83.8 confidence) suggests *******************#012#012If you want to allow httpd to have getattr access on the global.dir file#012Then you need to change the label on /var/asl/data/msa/global.dir#012Do#012# semanage fcontext -a -t FILE_TYPE '/var/asl/data/msa/global.dir'#012where FILE_TYPE is one of the following: (....there are a lots of file type follow...)
It seems setenforce 0 could stop error in mod_security log, but still produce a lots of SELinux event.
I have try these command:
ausearch -c 'httpd' --raw | audit2allow -M my-httpd
semodule -i my-httpd.pp
ausearch -x /usr/sbin/httpd --raw | audit2allow -D -M my-httpd
semodule -i my-httpd.pp
plesk repair installation -y (which help to restore SELinux context)
But did not solve this problem
How can I fix this issue with SELinux enforced?
(What is correct SELinux FILE_TYPE for /var/asl/data/msa/global.dir?)
Last edited: