feat(services-restart): which services on the node still run replaced code, as root (NetOrk/netork#2750)

Both drivers mix in napalm-device-types' ServicesRestartMixin. The command
goes over the exec path, root's login as a rule, behind an id -u guard: a
login other than root would see only its own processes and read as
clean, so it prints nothing and the read raises. A running VM's QEMU is
listed as a process; an LXC container's processes are left out by the
parse, since a container updates itself. No stdin.
This commit is contained in:
Christian Manivong committed 2026-11-26 18:55:13 +01:00
1 parent c2d9d7e75e
commit b792f6d210
7 files changed
+106 -7

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ classifiers = [
requires-python = ">=3.12"
dependencies = [
"napalm>=5.0.0",
"napalm_device_types>=4.43.0", # ZabbixAgentMixin, opened_ports
"napalm_device_types>=4.44.0", # ServicesRestartMixin (NAPALM/napalm-device-types#132)
"paramiko>=5.0.0", # CVE-2026-44405; imported directly for the node's SSH session (_base.py)
"proxmoxer>=2.0.0",
"netaddr>=0.9.0",