1

I have been battling with this issue for weeks. I have a Linode with a Centos 8 server. An application called "SetroubleshootPrivileged.py" is eating all the resources.

"setroubleshootd" is supposed to log SELinux errors which is great but what is "SetoubleshhotPrivileged.py" and how can I get rid of this issue?

enter image description here enter image description here

I tried to learn more about what could cause this issue but "sudo sealert -a /var/log/audit/audit.log" does not give me anything... just freezes at 4%.

enter image description here

Thank you very much for your help!

Erus
  • 21
  • 3

1 Answers1

2

For me running systemctl status dbus.service showed that Selinux is preventing some stuff from running.

In the output and also in /var/log/messages I found its suggestions for fixing the issue.

Smoke
  • 66
  • 2
  • Nice, thanks! SELinux is preventing php-fpm from writing to PHP files and the websites dir. – Erus May 21 '21 at 23:44
  • I did the following to fix the access to PHP files: ausearch -c 'php-fpm' --raw | audit2allow -M my-phpfpm semodule -X 300 -i my-phpfpm.pp Just worried that it gives too much permission then nothing is protected? – Erus May 21 '21 at 23:46
  • I am still hesitating to grant RW access to the websites dir themselves. Would anybody know if it is OK to give RW access to all directories of a website? => "semanage fcontext -a -t httpd_sys_rw_content_t site_dir" then "restorecon -v site_dir" – Erus May 21 '21 at 23:50