Skip to content

fix(packaging): add setuid for cgroup-network and ebpf.plugin in RPM#14140

Merged
ilyam8 merged 3 commits into
netdata:masterfrom
ilyam8:fix_rpm_ebpf_and_cgroup_network
Dec 14, 2022
Merged

fix(packaging): add setuid for cgroup-network and ebpf.plugin in RPM#14140
ilyam8 merged 3 commits into
netdata:masterfrom
ilyam8:fix_rpm_ebpf_and_cgroup_network

Conversation

@ilyam8
Copy link
Copy Markdown
Member

@ilyam8 ilyam8 commented Dec 13, 2022

Summary

Fixes: #14132

This PR fixes the lack of setuid bit for:

  • cgroup-network
  • ebpf.plugin

In fact, it doesn't really fix #14132, but it is up to @Ferroin if we want to keep the issue open.

Test Plan
  • Build an rpm package locally.
  • Install netdata.
  • Check cgroup-network and ebpf.plugin permissions.
Additional Information
For users: How does this change affect me?

@ilyam8 ilyam8 requested a review from Ferroin as a code owner December 13, 2022 19:00
Comment thread netdata.spec.in
# Conditional build:
%bcond_without systemd # systemd
%bcond_with netns # build with netns support (cgroup-network)
%bcond_without netns # build with netns support (cgroup-network)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ferroin I am not sure why we need this condition at all 🤷‍♂️ Do you remember/know?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s a leftover from CentOS 6, but it’s also probably not worth making the effort right now to completely remove it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction, this is planned for removal as part of #13927, once I finally get back to working on that. So no need to drop it here and make this PR more complicated than it needs to be.

@github-actions github-actions Bot added the area/packaging Packaging and operating systems support label Dec 13, 2022
@ilyam8 ilyam8 requested a review from thiagoftsm December 13, 2022 19:43
@ilyam8 ilyam8 merged commit 90166dc into netdata:master Dec 14, 2022
@ilyam8 ilyam8 deleted the fix_rpm_ebpf_and_cgroup_network branch December 14, 2022 14:36
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.

[Bug]: incorrect plugin permissions in RPM packages

3 participants