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

Skip kernel_setup_interface when skip-kernel-setup is enabled. #68

Closed
wants to merge 1 commit into from

Conversation

mweinelt
Copy link
Contributor

Setting sysctls is not allowed for unprivileged users, so let's not try
to set per interface rp_filter when skip-kernel-setup is set.

After this change babeld can run as an unprivileged users with
CAP_NET_ADMIN. The user needs to take care of setting up the sysctls
themselves.

Fixes: #67

Setting sysctls is not allowed for unprivileged users, so let's not try
to set per interface rp_filter when `skip-kernel-setup` is set.

After this change babeld can run as an unprivileged users with
CAP_NET_ADMIN. The user needs to take care of setting up the sysctls
themselves.

Fixes: jech#67
@jech
Copy link
Owner

jech commented Dec 20, 2020

Thanks. Slightly edited and committed (under your name) as f9698a5.

@jech jech closed this Dec 20, 2020
@mweinelt mweinelt deleted the skip-per-interface-rp_filter branch December 20, 2020 20:06
mweinelt added a commit to mweinelt/nixpkgs that referenced this pull request Apr 24, 2021
This is in preparation to run babeld as DynamicUser and was submitted
upstream in jech/babeld#68 and will be part of
the 1.10 release.
mweinelt added a commit to mweinelt/nixpkgs that referenced this pull request Apr 24, 2021
The last bits to prevent babeld from running unprivileged was its
kernel_setup_interface routine, that wants to set per interface
rp_filter. This behaviour has been disabled in a patch that has been
submitted upstream at jech/babeld#68 and reuses
the skip-kernel-setup config option.

→ Overall exposure level for babeld.service: 1.7 OK 🙂
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.

skip kernel_setup_interface when skip-kernel-setup is set
2 participants