2b3e884209
Signed-off-by: maipbui <maibui@microsoft.com> Dependency: [https://github.com/sonic-net/sonic-buildimage/pull/12065](https://github.com/sonic-net/sonic-buildimage/pull/12065) #### Why I did it `subprocess.Popen()` and `subprocess.run()` is used with `shell=True`, which is very dangerous for shell injection. `os` - not secure against maliciously constructed input and dangerous if used to evaluate dynamic content `getstatusoutput` is dangerous because it contains `shell=True` in the implementation #### How I did it Replace `os` by `subprocess`, use with `shell=False` Remove unused functions |
||
---|---|---|
.. | ||
Nokia-7215 | ||
plugins | ||
default_sku | ||
installer.conf | ||
Nokia-M0-7215 | ||
pcie.yaml | ||
platform_asic | ||
platform_components.json | ||
platform_reboot | ||
platform.json | ||
sensors.conf | ||
system_health_monitoring_config.json | ||
thermal_policy.json |