M
M
Maxim Grishin2017-06-02 14:09:30
System administration
Maxim Grishin, 2017-06-02 14:09:30

How to fix selinux so that it correctly places contexts for /usr/local/?

I deployed a VM from the CentOS 7 distribution, installed Nagios on it, in the process of debugging errors I found that nagios was installed in /usr/local, and the context of the nagios files was unconfined_u:object_r:usr_t - i.e. default for hosting (inherited from /usr/local?). Well, as a result, sending commands to Nagiosu from the web muzzle does not work. The analysis showed, among other things, the absence of the /etc/selinux/targeted/contexts/files/file_contexts.local file (there is file_contexts nearby, apparently from other directories). What to treat?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question