sonic-buildimage/platform/broadcom/sonic-platform-modules-dell/s5212f/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
..
check_qsfp.sh Added Support for Dell EMC S5212f in SONiC (#8678) 2021-10-26 12:52:03 -07:00
pcisysfs.py [DellEMC] S52xx fix reboot cause issue (#9603) 2022-01-04 22:35:57 -08:00
platform_sensors.py [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
qsfp_irq_enable.py Added Support for Dell EMC S5212f in SONiC (#8678) 2021-10-26 12:52:03 -07:00
s5212f_platform.sh Upgrade new DellEMC platforms to bullseye kernel (#10) 2021-11-10 15:27:22 -08:00
sensors Added Support for Dell EMC S5212f in SONiC (#8678) 2021-10-26 12:52:03 -07:00