sonic-buildimage/platform/broadcom/sonic-platform-modules-dell/n3248te/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: N3248TE Initial platform commit (#8809) 2021-09-23 20:47:32 -07:00
chassis.py DellEMC: N3248TE platform API2.0 changes (#10400) 2022-04-01 07:34:31 -07:00
component.py [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
eeprom.py DellEMC: N3248TE Platform API 2.0 changes (#9735) 2022-03-04 17:53:35 -08:00
fan_drawer.py DellEMC: N3248TE Platform API 2.0 changes (#9735) 2022-03-04 17:53:35 -08:00
fan.py DellEMC: N3248TE platform API2.0 changes (#10400) 2022-04-01 07:34:31 -07:00
platform.py DellEMC: N3248TE Initial platform commit (#8809) 2021-09-23 20:47:32 -07:00
psu.py [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
sfp.py DellEMC: N3248TE platform API2.0 changes (#10400) 2022-04-01 07:34:31 -07:00
thermal.py DellEMC: N3248TE Platform API 2.0 changes (#9735) 2022-03-04 17:53:35 -08:00
watchdog.py DellEMC: N3248TE/N3248PXE Watchdog Support (#9398) 2022-04-01 07:33:08 -07:00