sonic-buildimage/platform/broadcom/sonic-platform-modules-dell/s5248f
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
..
cfg [device]: Add a new supported device DellEMC s5248f (#3547) 2019-10-17 18:43:59 -07:00
modules Update SAI modules for Nokia and Juniper for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
scripts [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
sonic_platform [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
systemd [device]: Add a new supported device DellEMC s5248f (#3547) 2019-10-17 18:43:59 -07:00
setup.py DellEMC: S5248F - Platform API 2.0 implementation (#7930) 2021-06-28 09:44:49 -07:00