sonic-buildimage/device/dell/x86_64-dellemc_z9432f_c3758-r0
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
..
DellEMC-Z9432f-O32 DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
DellEMC-Z9432f-T64C64O8-DPB DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
plugins [device/dell] Mitigation for security vulnerability (#11875) 2023-01-05 16:22:09 -08:00
custom_led.bin DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
default_sku DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
installer.conf DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
led_proc_init.soc DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
platform_asic DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
platform.json DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
pmon_daemon_control.json DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
port-locator.soc DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00
system_health_monitoring_config.json DellEMC: Initial commit for Z9432F platform (#10640) 2022-06-15 09:39:41 -07:00