sonic-buildimage/platform/broadcom/sonic-platform-modules-dell/z9332f/scripts
Mai Bui 06e1a0bc14
[device/dell] Mitigation for security vulnerability (#11875)
Dependency: [PR (#12065)](https://github.com/sonic-net/sonic-buildimage/pull/12065) needs to merge first.

#### Why I did it
`commands` module is not protected against malicious input
`getstatusoutput` is detected without a static string, uses `shell=True`
#### How I did it
Eliminate the use of `commands`
Use `subprocess.run()`, commands in `subprorcess.run()` are totally static
Fix indentation
#### How to verify it
Tested on DUT
[dell_log.txt](https://github.com/sonic-net/sonic-buildimage/files/9561332/dell_log.txt)
2023-01-05 16:22:09 -08:00
..
fast-reboot_plugin DellEMC: Z9332f - Graceful platform reboot (#10240) 2022-08-30 11:23:52 -07:00
override.conf DellEMC: Z9332f - Graceful platform reboot (#10240) 2022-08-30 11:23:52 -07:00
platform_reboot_override DellEMC: Z9332f - Graceful platform reboot (#10240) 2022-08-30 11:23:52 -07:00
platform_sensors.py [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
sensors DellEMC: Add support for new platform z9332f -32x400G (#3845) 2019-12-17 15:26:23 -08:00
soft-reboot_plugin DellEMC: Z9332f - Graceful platform reboot (#10240) 2022-08-30 11:23:52 -07:00
warm-reboot_plugin DellEMC: Z9332f - Graceful platform reboot (#10240) 2022-08-30 11:23:52 -07:00
z9332f_platform.sh DellEMC: Fix Z9332f thermalctld warning logs (#9943) 2022-02-10 09:16:58 -08:00