mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
18 lines
603 B
Diff
18 lines
603 B
Diff
# See https://github.com/netdata/netdata/pull/17377#issuecomment-2183017868
|
|
# https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93
|
|
|
|
diff --git a/src/collectors/plugins.d/ndsudo.c b/src/collectors/plugins.d/ndsudo.c
|
|
index d53ca9f28..b42a121bf 100644
|
|
--- a/src/collectors/plugins.d/ndsudo.c
|
|
+++ b/src/collectors/plugins.d/ndsudo.c
|
|
@@ -357,9 +357,6 @@ int main(int argc, char *argv[]) {
|
|
return 3;
|
|
}
|
|
|
|
- char new_path[] = "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin";
|
|
- putenv(new_path);
|
|
-
|
|
setuid(0);
|
|
setgid(0);
|
|
setegid(0);
|