diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-12-15 16:09:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 16:09:24 +0200 |
commit | 0c8b46cbfd05109a45ee4de27f034567569fa3fa (patch) | |
tree | 9b25cff7b4cee0dcc03377e2ca583ec699fea532 /packaging/makeself | |
parent | 488dc7779e718e99ea1d792e36d9d6cb63138038 (diff) |
ndsudo - a helper to run privileged commands (#16614)
* ndsudo command
* added help
* make ndsudo setuid to root
* fix megacli binary name on FreeBSD
* move ndsudo to collectors/plugins.d/
* address PR comments
* do not print the command line argument, instead print its index
---------
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Diffstat (limited to 'packaging/makeself')
-rwxr-xr-x | packaging/makeself/install-or-update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/makeself/install-or-update.sh b/packaging/makeself/install-or-update.sh index e4c133459e..63bf706e2e 100755 --- a/packaging/makeself/install-or-update.sh +++ b/packaging/makeself/install-or-update.sh @@ -172,7 +172,7 @@ fi progress "changing plugins ownership and permissions" -for x in apps.plugin perf.plugin slabinfo.plugin debugfs.plugin freeipmi.plugin ioping cgroup-network local-listeners ebpf.plugin nfacct.plugin xenstat.plugin python.d.plugin charts.d.plugin go.d.plugin ioping.plugin cgroup-network-helper.sh; do +for x in ndsudo apps.plugin perf.plugin slabinfo.plugin debugfs.plugin freeipmi.plugin ioping cgroup-network local-listeners ebpf.plugin nfacct.plugin xenstat.plugin python.d.plugin charts.d.plugin go.d.plugin ioping.plugin cgroup-network-helper.sh; do f="usr/libexec/netdata/plugins.d/${x}" if [ -f "${f}" ]; then run chown root:${NETDATA_GROUP} "${f}" @@ -192,7 +192,7 @@ if command -v setcap >/dev/null 2>&1; then run setcap "cap_net_admin,cap_net_raw=eip" "usr/libexec/netdata/plugins.d/go.d.plugin" else - for x in apps.plugin perf.plugin slabinfo.plugin debugfs.plugin; do + for x in ndsudo apps.plugin perf.plugin slabinfo.plugin debugfs.plugin; do f="usr/libexec/netdata/plugins.d/${x}" run chmod 4750 "${f}" done |