sonic-buildimage/platform/broadcom/sonic-platform-modules-dell/s5232f/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 S5232f] Updates and bug fixes for platform (#5887) 2020-11-11 12:59:30 -08:00
chassis.py [DellEMC] Fixing 'show interface status' break in DellEMC platforms (#13021) 2022-12-20 12:38:09 -08:00
component.py [DellEMC] Fixing 'show interface status' break in DellEMC platforms (#13021) 2022-12-20 12:38:09 -08:00
eeprom.py [DellEMC]: EEPROM platform API Python3 compliance changes (#5960) 2020-11-24 17:30:41 -08:00
fan_drawer.py [DellEMC Z9332f] Platform API 2.0 Support and bug fixing (#5958) 2020-12-10 10:30:44 -08:00
fan.py [DellEMC] Ensure concrete platform API classes call base class initializer (#6853) 2021-02-25 11:20:34 -08:00
hwaccess.py [platform] Add DellEMC s5232f API 2.0 support (#4552) 2020-05-20 14:40:39 -07:00
platform.py [platform] Add DellEMC s5232f API 2.0 support (#4552) 2020-05-20 14:40:39 -07:00
psu.py DellEMC: S5232F support for show system-health command (#8334) 2021-08-10 20:35:51 -07:00
sfp.py [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
thermal.py DellEMC: S5232, Z9264, Z9332 - Platform API fixes (#6842) 2021-02-24 12:42:01 -08:00
watchdog.py [DellEMC] Ensure concrete platform API classes call base class initializer (#6853) 2021-02-25 11:20:34 -08:00