acrn-hypervisor/misc/config_tools/board_inspector/cpuparser
Junjie Mao 0cbcdbd7c0 board_inspector: use executables found under system paths
Using partial executable paths in the board inspector may cause unintended
results when another executable has the same name and is also detectable in
the search paths.

Introduce a wrapper module (`external_tools`) which locates executables
only under system paths such as /usr/bin and /usr/sbin and converts partial
executable paths to absolute ones before executing them via the subprocess
module. All invocations to `subprocess.run` or `subprocess.Popen`
throughout the board inspector are replaced with `external_tools.run`, with
the only exception being the invocation to the legacy board parser which
already uses an absolute path to the current Python interpreter.

Tracked-On: #8315
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2022-11-16 14:12:36 +08:00
..
__init__.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
cpuids.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
msr.py config_tools: add BIOS invalid setting check 2022-03-30 09:43:31 +08:00
platformbase.py board_inspector: use executables found under system paths 2022-11-16 14:12:36 +08:00