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

Add proper SUID fallback for DEB plugin packages. #15803

Merged
merged 2 commits into from Aug 14, 2023

Conversation

Ferroin
Copy link
Member

@Ferroin Ferroin commented Aug 14, 2023

Summary

On systems where file capabilities are not usable, we need to properly mark plugins that use them as SUID 0 so that they still are able to work.

This code is not expected to run on a vast majority of systems (possibly not even any systems) as it is vanishingly rare that file capabilities are not usable.

Test Plan

CI passes on this PR.

Proper validation of these changes is extremely difficult, because it’s actually pretty hard to make file capabilities not work, but it’s probably fine to only verify that this breaks nothing since that case is so unlikely to occur in the wild.

@github-actions github-actions bot added the area/packaging Packaging and operating systems support label Aug 14, 2023
@Ferroin Ferroin marked this pull request as ready for review August 14, 2023 11:35
@Ferroin Ferroin requested a review from a team August 14, 2023 11:36
@Ferroin Ferroin merged commit 0aedcbe into netdata:master Aug 14, 2023
120 checks passed
@Ferroin Ferroin deleted the deb-caps-fallback branch August 14, 2023 14:15
Ferroin added a commit that referenced this pull request Aug 16, 2023
* Add proper SUID fallback for DEB plugin packages.

* Update contrib/debian/netdata-plugin-perf.postinst

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants