sonic-buildimage/device/accton
Mai Bui 5b0c4ec1e6
[device/accton] Replace os.system and remove subprocess with shell=True (#11985)
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 unused functions
2022-11-07 10:31:32 -05:00
..
x86_64-accton_as4630_54pe-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_as4630_54te-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_as5712_54x-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as5812_54t-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as5812_54x-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as5835_54t-r0 [Accton/PDDF] Enable thermalctld in pmon (#9982) 2022-03-29 13:35:42 -07:00
x86_64-accton_as5835_54x-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_as6712_32x-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as7116_54x-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_as7212_54x-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as7312_54x-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_as7312_54xs-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as7315_27xb-r0 [AS7315-27XB] Fix build error and incorrect I2C bus number (#9712) 2022-01-16 12:13:16 +05:30
x86_64-accton_as7326_56x-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_as7512_32x-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as7712_32x-r0 [Accton/PDDF] Support pddf to as4630/as7816/as7326 (#10340) 2022-04-01 09:55:04 -07:00
x86_64-accton_as7716_32x-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as7716_32xb-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-accton_as7726_32x-r0 [PDDF] Rename temp for as7816/7326/7726 (#10609) 2022-05-09 10:47:45 -07:00
x86_64-accton_as7816_64x-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_as9716_32d-r0 [AS9716-32D] Support i2c mux reset (#10492) 2022-04-09 10:51:49 -07:00
x86_64-accton_as9726_32d-r0 [device/accton] Replace os.system and remove subprocess with shell=True (#11985) 2022-11-07 10:31:32 -05:00
x86_64-accton_minipack-r0 Replace swsssdk with swsscommon in accton device (#11348) 2022-08-24 12:36:47 +08:00
x86_64-accton_wedge100bf_32qs-r0 [BFN] Update configuration files (#9913) 2022-03-09 09:57:08 +05:30