Skip to content
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

tools: Fix SELinux module installation in non-SELinux environments #16628

Merged
merged 1 commit into from Nov 22, 2021

Conversation

martinpitt
Copy link
Member

%selinux_modules_{,un}install works fine in environments like guestfs,
which don't run with SELinux enabled. Adjust the condition so that
module installation happens there as well. The relabeling still won't
work there, but that has its own guard with calling selinuxenabled.

https://bugzilla.redhat.com/show_bug.cgi?id=2023579

`%selinux_modules_{,un}install` works fine in environments like guestfs,
which don't run with SELinux enabled. Adjust the condition so that
module installation happens there as well. The relabeling still won't
work there, but that has its own guard with calling `selinuxenabled`.

https://bugzilla.redhat.com/show_bug.cgi?id=2023579
@martinpitt
Copy link
Member Author

I validated that this works in https://src.osci.redhat.com/rpms/cockpit/pull-request/86 (sorry, RH internal only)

@martinpitt martinpitt temporarily deployed to cockpit-dist November 22, 2021 09:07 Inactive
Copy link
Member

@marusak marusak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@martinpitt martinpitt merged commit 2525920 into cockpit-project:main Nov 22, 2021
@martinpitt martinpitt deleted the selinux-scripts branch November 22, 2021 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants