Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812254 - net-analyzer/netdata[ipmi]: add missing fcaps call for freeipmi plugin
Summary: net-analyzer/netdata[ipmi]: add missing fcaps call for freeipmi plugin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-09 10:08 UTC by Steffen Weber
Modified: 2021-09-09 18:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Weber 2021-09-09 10:08:34 UTC
Out of the box, the "freeipmi" plugin fails with the following error:

freeipmi.plugin ERROR : MAIN : ipmi_monitoring_sensor_readings_by_record_id(): internal system error (errno 9, Bad file descriptor)

The Netdata installer script fixes this issue by calling (see https://github.com/netdata/netdata/blob/v1.31.0/netdata-installer.sh#L1311):

chmod 4750 /usr/libexec/netdata/plugins.d/freeipmi.plugin

The Gentoo ebuild uses capabilities instead (for example for the nfacct and xenstat plugins). Adding the following lines to the "pkg_postinst" function fixes the issue, too:

if use ipmi ; then
    fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/freeipmi.plugin'
fi

Reproducible: Always
Comment 1 Craig Andrews gentoo-dev 2021-09-09 18:04:38 UTC
Thank you!
Comment 2 Larry the Git Cow gentoo-dev 2021-09-09 18:05:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a97da23507e384e14fd38999093b4725165795f3

commit a97da23507e384e14fd38999093b4725165795f3
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2021-09-09 18:05:06 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2021-09-09 18:05:26 +0000

    net-analyzer/netdata: add missing fcaps call for freeipmi plugin
    
    Closes: https://bugs.gentoo.org/812254
    Package-Manager: Portage-3.0.22, Repoman-3.0.3
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-analyzer/netdata/netdata-1.31.0-r2.ebuild | 152 ++++++++++++++++++++++++++
 net-analyzer/netdata/netdata-9999.ebuild      |   4 +
 2 files changed, 156 insertions(+)