-
Notifications
You must be signed in to change notification settings - Fork 380
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
Issue in debian package systemd startup script: Failed to apply ambient capabilities (before UID change): Operation not permitted #1605
Comments
What kind of kernel and environment was this under? |
This is on Debian Buster, kernel 4.19.0-23-cloud-amd64, using the Debian AWS AMI. |
Could be the cloud/AWS kernel not allowing CAP_NET_ADMIN then |
Is there anything in rtpengine that will fail without having CAP_NET_ADMIN? If the daemon launches are we good to go, or could there be runtime failures later? |
(Note: It looks like this is only a Debian buster issue; the default systemd scripts worked fine on Debian bullseye, 5.10.0-20-cloud-amd64.) |
CAP_NET_ADMIN is needed for managing the iptables rules if that feature is enabled (see And we've been using this on both bullseye and buster with the stock kernels just fine, so this is probably something specific to that cloud kernel. |
I had the same problem as @markboots on a plain Debian Buster installation and I can confirm that commenting out AmbientCapabilities in the systemd service file works. However, I was not pleased by the solution and experimented some more and found that I could keep AmbientCapabilities enabled if I commented out CapabilityBoundingSet=(empty here) at line 59 of the systemd file (https://github.com/sipwise/rtpengine/blob/master/debian/ngcp-rtpengine-daemon.service) or at least setting CapabilityBoundingSet to anything but an empty set, such as the example on line 65 of the same file. So for me this works:
as well as
but this doesn't:
|
We're using the Debian packages at https://dfx.at/rtpengine/
Using the default systemd startup script, rtpengine-daemon fails to start:
We resolved this by commenting out the following Ambient Capabilities in /lib/systemd/system/rtpengine-daemon.service:
Contrary to the NOTE, this change succeeds at launching successfully, running as the non-root
rtpengine
user.The text was updated successfully, but these errors were encountered: