-
Notifications
You must be signed in to change notification settings - Fork 140
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
libcap-ng used by "/usr/sbin/irqbalance" failed due to not having CAP_SETPCAP in capng_apply #335
Comments
what do your audit logs say about the problem:
|
|
so, it looks like you built irqbalance with capng support, and selinux is telling you that, with your current selinux labeling, that the user running the binary doesn't have permissions to call setpcap from the libcap library. You have two choices for fixing this:
Given that your initial post referenced changes to the service file, I'm guessing you're using systemd, which can/will handle capabilities for you, and your selinux policy is likely set to already allow that. My recommendation would be to follow path (2) |
Thanks for the quick response. |
but you said in your initial post:
so I assume you are rebuilding irqbalance yourself? Either way, if RedHat is building irqbalance with capng support and not adjusting their policy to match its needs, yes, thats on them to fix, by either fixing their irqbalance build, or by publishing the right irqbalance policy |
Those are changes to the systemd service file, so no rebuild was necessary, just systemctl edit. |
Follow-up to #182 and #328.
This fix results in AVC errors from SELinux:
SELinux is preventing /usr/sbin/irqbalance from setpcap access on the cap_userns labeled irqbalance_t
Manually applying 43751df and efab272 also eliminates the message, but also results in the same SELinux AVC error.
I don't have enough expertise with SELinux to suggest a fix
The text was updated successfully, but these errors were encountered: