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

dbus-broker falls back to nss with 4.13 kernel #65

Closed
Mdyrl7777777 opened this issue Oct 2, 2017 · 6 comments
Closed

dbus-broker falls back to nss with 4.13 kernel #65

Mdyrl7777777 opened this issue Oct 2, 2017 · 6 comments

Comments

@Mdyrl7777777
Copy link

Mdyrl7777777 commented Oct 2, 2017

I'm using latest stable kernel 4.13.4 which have SO_PEERGROUPS support but dbus-broker still warns about it:
dbus-broker-launch: Falling back to resolving auxillary groups using nss, this is racy and may cause deadlocks. Update to a kernel with SO_PEERGROUPS support.

Is there specific config option need to be enabled in kernel or is this false warning?

@Keruspe
Copy link
Contributor

Keruspe commented Oct 2, 2017

This is a build-time check, not a runtime one, so you need linux-headers >= 4.13 when building dbus-broker to effectively use the SO_PEERGROUPS stuff.

@Mdyrl7777777
Copy link
Author

I didn't know that linux-headers is build-time dependency. I think it isn't listed as dependency in any distro that have dbus-broker packages https://github.com/bus1/dbus-broker/wiki#available-packages

@Mdyrl7777777
Copy link
Author

Sorry, maybe I misunderstand this. In Archlinux there are two headers packages:
https://www.archlinux.org/packages/core/any/linux-api-headers/ for userspace
https://www.archlinux.org/packages/core/x86_64/linux-headers/ for kernel modules
The former is currently at 4.12.7 version. I guess that's the reason why SO_PEERGROUPS isn't supported, right?

@Keruspe
Copy link
Contributor

Keruspe commented Oct 2, 2017

Whichever provides asm-generic/socket.h needs to be at least version 4.13

@dvdhrm
Copy link
Member

dvdhrm commented Oct 2, 2017

It's linux-api-headers on arch-linux. Unfortunately, they haven't updated it to 4.13, yet.

@Mdyrl7777777
Copy link
Author

Updating linux-api-headers to 4.13 solved this. Thx for help.

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

No branches or pull requests

3 participants