sonic-buildimage/device/centec
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
..
arm64-centec_e530_24x2c-r0 [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
arm64-centec_e530_24x2q-r0 [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
arm64-centec_e530_48s4x-r0 [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
arm64-centec_e530_48t4x_p-r0 [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
x86_64-centec_e582_48x2q4z-r0 Replace swsssdk with swsscommon in centec devices. (#11350) 2022-08-24 12:39:51 +08:00
x86_64-centec_e582_48x6q-r0 Replace swsssdk with swsscommon in centec devices. (#11350) 2022-08-24 12:39:51 +08:00
x86_64-centec_v682_48x8c-r0 [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
x86_64-centec_v682_48y8c_d-r0 [centec] support v682-48y8c and v682-48x8c (#9349) 2021-12-17 15:20:27 -08:00
x86_64-centec_v682_48y8c-r0 [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00
x86_64-ew_es6220_x48q2h4-r0 [device/centec] Replace os.system and remove subprocess with shell=True (#12024) 2022-10-07 10:48:25 -04:00