-
Notifications
You must be signed in to change notification settings - Fork 27
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
make cockpit definition optional #163
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evgeni
force-pushed
the
optional-cockpit
branch
4 times, most recently
from
February 2, 2024 17:18
67bb1c2
to
d14d8c1
Compare
evgeni
commented
Feb 2, 2024
evgeni
force-pushed
the
optional-cockpit
branch
2 times, most recently
from
February 8, 2024 09:15
10266e3
to
bd2fba2
Compare
evgeni
commented
Feb 8, 2024
huh, this breaks fresh installs, wild:
|
🤯 |
should be fixed by theforeman/foreman-packaging#10404 |
evgeni
force-pushed
the
optional-cockpit
branch
from
February 9, 2024 08:18
eae458e
to
b417f53
Compare
I've moved the symlink-remove parts into #164 as they are independent from EL9. |
evgeni
force-pushed
the
optional-cockpit
branch
from
February 9, 2024 08:44
c5583b5
to
7f977ee
Compare
evgeni
force-pushed
the
optional-cockpit
branch
from
February 9, 2024 09:37
7f977ee
to
2a744d3
Compare
adamruzicka
approved these changes
Feb 9, 2024
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.
To my limited understanding, this should be fine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The problem is that the cockpit policy moved to the cockpit package in EL9, not in the main selinux policy anymore.
Thus, when installing on a system without cockpit (and its policy), you get ugly errors like:
And more importantly: the whole policy fails to load, leading to many issues at runtime.
To avoid this, we have to wrap the cockpit-related parts of the policy with
optional_policy
and introduce an own entrypoint that we can use in our file contexts, as there is nooptional()
for those.