sonic-buildimage/device/centec/x86_64-centec_v682_48x8c-r0
Mai Bui 3cd9b2e1b5
[device/centec] Replace os.system and remove subprocess with shell=True (#12024)
Signed-off-by: maipbui <maibui@microsoft.com>
#### Why I did it
`subprocess.Popen()` and `subprocess.run()` is used with `shell=True`, which is very dangerous for shell injection.
`os` - not secure against maliciously constructed input and dangerous if used to evaluate dynamic content
#### How I did it
Replace `os` by `subprocess`, remove `shell=True`
Remove unused functions
2022-10-07 10:48:25 -04:00
..
plugins [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
V682-48x8c [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
default_sku [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
fancontrol [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
installer.conf [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
pcie.yaml [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
platform_asic [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
platform_components.json [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
platform_reboot [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
pmon_daemon_control.json [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00