Re: [PATCH 09/20] util: remove use hardcoded DMIDECODE path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 29, 2025 at 12:14:09 +0100, Daniel P. Berrangé via Devel wrote:
> From: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> 
> Allow virCommand to find 'dmidecode' in $PATH. This command is only
> usable when running privileged since it relies on reading from a
> privileged kernel file. Thus we can assume both 'bin' and 'sbin' dirs
> will be in $PATH and virFindFileInPath will do the right thing to
> find it when called by virCommand.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  meson.build           | 1 -
>  src/util/virsysinfo.c | 4 ++--
>  2 files changed, 2 insertions(+), 3 deletions(-)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux