sonic-buildimage/platform/broadcom/sonic-platform-modules-dell/z9332f/sonic_platform
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
..
__init__.py [DellEMC-Z9332f] Fix platform issues (#6250) 2020-12-22 16:21:09 -08:00
chassis.py [DellEMC] Fixing 'show interface status' break in DellEMC platforms (#13021) 2022-12-20 12:38:09 -08:00
component.py [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
eeprom.py DellEMC: Z9332f - Platform API implementation (#8787) 2021-09-19 12:15:22 -07:00
fan_drawer.py DellEMC: Z9332f - Platform API implementation (#8787) 2021-09-19 12:15:22 -07:00
fan.py DellEMC Z9332f: Platform API - Update maximum fan speed (#8766) 2021-09-16 17:55:50 -07:00
hwaccess.py [DellEMC Z9332f] Platform API 2.0 Support and bug fixing (#5958) 2020-12-10 10:30:44 -08:00
platform.py [DellEMC Z9332f] Platform API 2.0 Support and bug fixing (#5958) 2020-12-10 10:30:44 -08:00
psu.py DellEMC: Z9332f - Platform API implementation (#8787) 2021-09-19 12:15:22 -07:00
sfp.py [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
thermal.py DellEMC: Z9332F - Watchdog support, add platform.json, new platform API implementation and fixes (#6988) 2021-03-10 10:49:33 -08:00
watchdog.py DellEMC: Z9332F - Watchdog support, add platform.json, new platform API implementation and fixes (#6988) 2021-03-10 10:49:33 -08:00