New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cephadm: fetch the real selinux status #42290
cephadm: fetch the real selinux status #42290
Conversation
83f59aa
to
1fd7917
Compare
can you copy the essential parts of the tracker issue into the commit message? I'd like to be able to get a reason for this change, without looking at the tracker issue |
9c8351a
to
892d1d8
Compare
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jenkins test make check |
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>
95e5b3e
to
c3c79fc
Compare
all tests passed in teuthology run |
Fetch the real selinux status.
The mode in the configuration file and the actual mode can be different so we can not simply trust the configuration file, we have to check the real selinux status.
Fixes: https://tracker.ceph.com/issues/51632
Signed-off-by: Javier Cacheiro javier.cacheiro.lopez@cesga.es
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox