]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fetch the actually running selinux status.
authorJavier Cacheiro <jlopez@cesga.es>
Mon, 12 Jul 2021 14:03:27 +0000 (16:03 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 10 Aug 2021 14:32:09 +0000 (16:32 +0200)
commit926c97749117733a3f3050bad681e677dbfa4878
tree13e429524a59cedb8b7aa93e62865161f6577703
parenta26a8f5be21fd7dae1050f1df38e93e2fda4f8c5
Fetch the actually running selinux status.

The HostFacts should return the **actual** selinux mode in which the
kernel is running.

The actual mode can be different from the one in the configuration
if the server has not been rebooted or if the mode was changed
after boot using setenforce.

Instead of reading _selinux_path_list we should look at the output of
sestatus or getenforce.

The _selinux_path_list attribute is no longer needed.

Fixes: https://tracker.ceph.com/issues/51632
Signed-off-by: Javier Cacheiro <javier.cacheiro.lopez@cesga.es>
(cherry picked from commit c3c79fc44c34825384c59cbe962b9153e6b522b0)
src/cephadm/cephadm