mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
netdata: add setuid to the xenstat plugin file
As mentioned in the Netdata documentation [1], The xenstat plugin requires elevated privileges to be executed. The xenstat.plugin permissions are modified to only allow users belonging to the netdata group to execute the plugin with root privileges. [1] https://learn.netdata.cloud/docs/collecting-metrics/containers-and-vms/xen-xcp-ng Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
6f6aa30602
commit
9527f00467
@@ -87,6 +87,12 @@ do_install:append() {
|
||||
chmod 4750 ${D}${libexecdir}/netdata/plugins.d/apps.plugin
|
||||
rm -rf ${D}/${localstatedir}/
|
||||
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'xenstat', 'true', 'false', d)}; then
|
||||
# Set S UID for xenstat plugin
|
||||
chown root:netdata ${D}${libexecdir}/netdata/plugins.d/xenstat.plugin
|
||||
chmod 4750 ${D}${libexecdir}/netdata/plugins.d/xenstat.plugin
|
||||
fi
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
# Install systemd unit files
|
||||
install -Dm 0644 ${UNPACKDIR}/netdata-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/netdata.conf
|
||||
|
||||
Reference in New Issue
Block a user