]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: remove use hardcoded TC path
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 28 Apr 2025 16:22:14 +0000 (17:22 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 May 2025 08:31:28 +0000 (09:31 +0100)
commit8faebd4aa8076ab1f67d1e4a0db02800a64c7449
tree41ad79250d300c1c250da1a48276c7aedccb6f64
parent5f781ab31154dfac1c7fa9a56ddeca5bbf0288d8
util: remove use hardcoded TC path

Allow virCommand to find 'tc' in $PATH. This command is only used
when running privileged in which case both 'bin' and 'sbin' dirs will
be in $PATH, so virFindFileInPath will do the right thing to find it.

Since there are no longer any optional programs, only optional test
programs, the meson variables can be renamed and simplified at this
point.

The "TC" constant is defined in the header to match the pattern used
for the other firewall tool names.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build
src/util/virfirewall.h
src/util/virnetdevbandwidth.c
tests/virnetdevbandwidthtest.c