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

Install SELinux policy to active one #1051

Merged
merged 2 commits into from
Mar 6, 2025

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Mar 3, 2025

Relates to: containers/qm#731

Change the bluechi-selinux module to be installed to the targeted policy (which is hardcoded), simply install it to the active SELinux policy.

@engelmi engelmi requested a review from mwperina March 3, 2025 13:18
@engelmi
Copy link
Member Author

engelmi commented Mar 3, 2025

@alexlarsson @mwperina PTAL
In contrast to QM, BlueChi doesn't require selinux-policy-targeted or -any, so I left that part out and didn't add such a dependency.

@coveralls
Copy link

coveralls commented Mar 3, 2025

Coverage Status

coverage: 82.251% (-0.1%) from 82.368%
when pulling ab7c513 on engelmi:fix-selinux-packaging
into 1e6d5f9 on eclipse-bluechi:main.

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

LGTM

@engelmi engelmi force-pushed the fix-selinux-packaging branch from 473edc4 to c14e5ed Compare March 5, 2025 10:43
@engelmi
Copy link
Member Author

engelmi commented Mar 5, 2025

Packit currently has issues building SRPMs: https://status.packit.dev/

@engelmi
Copy link
Member Author

engelmi commented Mar 6, 2025

/packit build

engelmi added 2 commits March 6, 2025 14:19
Relates to: containers/qm#731

Change the bluechi-selinux module to be installed to the targeted
policy (which is hardcoded), simply install it to the active SELinux policy.

Signed-off-by: Michael Engel <[email protected]>
The haproxy types are not (yet) available in the automotive selinux policy.
In order not to break the bluechi policy, the haproxy part has been wrapped
in an optional policy block.

Signed-off-by: Michael Engel <[email protected]>
@engelmi engelmi force-pushed the fix-selinux-packaging branch from c14e5ed to ab7c513 Compare March 6, 2025 13:19
@engelmi engelmi merged commit 95985c9 into eclipse-bluechi:main Mar 6, 2025
20 checks passed
engelmi added a commit that referenced this pull request Mar 6, 2025
Backport of: #1051

Signed-off-by: Michael Engel <[email protected]>
engelmi added a commit that referenced this pull request Mar 6, 2025
Backport of: #1051

Signed-off-by: Michael Engel <[email protected]>
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.

4 participants