-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add bluechi uds to policy #703
Conversation
@dougsland @alexlarsson PTAL |
@Yarboa PTAL too |
e665b80
to
87b2a51
Compare
@engelmi which version do you want o consume? |
@Yarboa The latest BlueChi from copr snapshot and QM from this PR. |
As discussed selinux should be installed on the host, Will update here |
I think the specfile has to build-require bluechi-policy, or you cannot guarantee that the optional part of the policy is built during package build. |
I tried this, but the qm agent still fails to connect: Jan 15 15:47:33 755068142da0 bluechi-agent[38]: Agent connection attempt failed, retrying with: Jan 15 16:02:54 localhost kernel: audit: type=1400 audit(1736956974.687:8): avc: denied { write } for pid=767 comm="bluechi-agent" name="bluechi.sock" dev="tmpfs" ino=551 scontext=system_u:system_r:qm_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file permissive=0 |
If I disable selinux enforcing mode I see these two AVCS:
Which we need to fix |
This is what audit2allow says (although take that as a hint rather than a must):
|
Turns out i just didn't have bluechi-selinux installed, because it is not a hard dependency. It works now. |
Signed-off-by: Michael Engel <[email protected]>
Fixes: containers#677 Recently, BlueChi enhanced the support for Unix Domain Sockets, including the respective SELinux policy (see In eclipse-bluechi/bluechi#1015). On a setup QM + BlueChi it makes sense to mount the UDS of BlueChi into QM and have the bluechi-agent inside connect to it. This, however, is currently rejected due to missing SELinux policy rules. Let's add this rule. Signed-off-by: Michael Engel <[email protected]>
87b2a51
to
6459e7e
Compare
Thanks for your help! @alexlarsson @Yarboa I pushed the change to add the @Yarboa About updating the documentation: Where do I need to update it? |
vim-enhanced is doing the trick i think, tend to to keep things KISS |
Seems to be quite hard to edit, though, to be honest. Checking the man page, it seems like this PR doesn't add anything that needs to be added there. |
@engelmi dont you think we should have socket tests aligned with this change? /plans/e2e/tier-0 |
Integration tests for BlueChi + QM definitely make sense. I am not sure if the QM repo is the right place for it, though. If I remember correctly, there were discussions of creating a repo/pipeline where the integration between QM and different services should be tested - I'd place these integration tests there. You are the maintainer and if you want the integration tests in the QM repo, then I can try to implement them here, of course :) |
Fixes: #677
Recently, BlueChi enhanced the support for Unix Domain Sockets, including the respective SELinux policy (see In eclipse-bluechi/bluechi#1015). On a setup QM + BlueChi it makes sense to mount the UDS of BlueChi into QM and have the bluechi-agent inside connect to it. This, however, is currently rejected due to missing SELinux policy rules. Let's add this rule.