]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fetch the actually running selinux status. 42290/head
authorJavier Cacheiro <jlopez@cesga.es>
Mon, 12 Jul 2021 14:03:27 +0000 (16:03 +0200)
committerJavier Cacheiro <jlopez@cesga.es>
Wed, 14 Jul 2021 14:00:35 +0000 (16:00 +0200)
commitc3c79fc44c34825384c59cbe962b9153e6b522b0
tree2a19b66625beacd6189b7f01e8acc6335a10acd2
parent3e2c8e94fb9fb8421a08ca425b14833a981565a6
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>
src/cephadm/cephadm