Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to set up new connection: Failed to read an SELinux context from connection #338

Open
Balavva-Mirji opened this issue Sep 29, 2022 · 1 comment

Comments

@Balavva-Mirji
Copy link

Balavva-Mirji commented Sep 29, 2022

Observed one below test case failure on both architectures i.e. Intel and Power for v5.1.0.
=== RUN TestTcpNonceConnection
dbus-daemon[1407687]: [session uid=0 pid=1407687] Unable to set up new connection: Failed to read an SELinux context from connection
transport_nonce_tcp_test.go:31: read tcp [::1]:51214->[::1]:44621: read: connection reset by peer
--- FAIL: TestTcpNonceConnection (0.02s)

I am trying to build this package on RHEL-8.4, it will be helpful if you provide any input on this test failure.
Thanks.

@guelfey
Copy link
Member

guelfey commented Oct 29, 2022

Seems to come from https://cgit.freedesktop.org/dbus/dbus/tree/bus/selinux.c#n700. I'm not too familiar with SELinux; I could imagine that the dbus-daemon that we spawn inside this test somehow lacks permissions in this regards. You could try running the test with DBUS_VERBOSE=1, then you shoudl get a hint on what is going wrong in more detail

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants