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
Use selinux facts to compare module checksums before copying to a node #144
Conversation
tasks/main.yml
Outdated
@@ -115,10 +115,9 @@ | |||
- name: Load SELinux modules | |||
include_tasks: selinux_load_module.yml | |||
vars: | |||
name: "{{ item.name | default('') }}" | |||
name: "{{ item.name | default( item.path | basename | splitext | first ) }}" |
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.
name: "{{ item.name | default( item.path | basename | splitext | first ) }}" | |
name: "{{ item.name | default(item.path | basename | splitext | first) }}" |
db4caa4
to
71e8da8
Compare
[citest] |
You'll need to rebase now that #145 is merged which should fix the CI test issues |
Also, if you really need to use |
- generate facts using libsemanage instead of spawning `semodule` - add modules checksum Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
cfda361
to
959cf00
Compare
[citest] |
1 similar comment
[citest] |
Is there a way to get previous results? Ive waited for them several hours and now they're gone :) |
It's possible, but not easy. What I can tell you is that in the previous run all of the tests passed except for RHEL-9.2/ansible-2.14, RHEL-7.9/ansible-2.14, RHEL-6.10/ansible-2.9, Fedora-36/ansible-2.14 |
ok |
@bachradsusi I think this is ready - do you want to remove the |
selinux_modules_facts module returns empty installed modules on rhel6:
Given that the libsemanage checksum is not supported on rhel6 and that the role doesn't use it, it's probably not a big deal but I guess I should fix it before it's merged. |
- fallback to semanage_module_list() when there's no semanage_module_list_all() - use priority 0 when libsemanage does not support it
[citest] |
I think it's ready. |
[1.5.3] - 2023-02-02 -------------------- ### New Features - none ### Bug Fixes - Use selinux facts to compare module checksums before copying to a node (linux-system-roles#144) ### Other Changes - do not use 'become' in tests, examples (linux-system-roles#145) Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Should address #142
This is early development version which already supports standard cases on rhel8.-6 and later.
Even though it still needs to be finished, I'd appreciate any early feedback.