sonic-buildimage/device/nokia/armhf-nokia_ixs7215_52x-r0
Mai Bui 2b3e884209
[nokia] Replace os.system and remove subprocess with shell=True (#12100)
Signed-off-by: maipbui <maibui@microsoft.com>
Dependency: [https://github.com/sonic-net/sonic-buildimage/pull/12065](https://github.com/sonic-net/sonic-buildimage/pull/12065)
#### 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
`getstatusoutput` is dangerous because it contains `shell=True` in the implementation
#### How I did it
Replace `os` by `subprocess`, use with `shell=False`
Remove unused functions
2022-12-01 12:12:50 -05:00
..
Nokia-7215 [Nokia 7215] Rename alias column with etpN normination (#8879) 2021-09-30 15:27:54 -07:00
plugins [nokia] Replace os.system and remove subprocess with shell=True (#12100) 2022-12-01 12:12:50 -05:00
default_sku [devices]: Add support for the Nokia-7215 platform (#5827) 2020-11-18 17:00:40 -08:00
installer.conf [Nokia ixs7215] change var/log size to 4GB (#11122) 2022-06-14 08:57:33 -07:00
Nokia-M0-7215 [Nokia 7215] Rename alias column with etpN normination (#8879) 2021-09-30 15:27:54 -07:00
pcie.yaml [Nokia ixs7215] Platform API 2.0 improvements (#6787) 2021-02-23 09:25:14 -08:00
platform_asic fixed nokia platform m0 asic mismatch (#12148) 2022-10-11 15:04:07 +08:00
platform_components.json [devices]: Add support for the Nokia-7215 platform (#5827) 2020-11-18 17:00:40 -08:00
platform_reboot [Nokia ixs7215] Platform API 2.0 improvements (#6787) 2021-02-23 09:25:14 -08:00
platform.json [Nokia ixs7215] Add new platform capabilities to platform.json (#9032) 2021-10-27 09:56:46 +08:00
sensors.conf [devices]: Add support for the Nokia-7215 platform (#5827) 2020-11-18 17:00:40 -08:00
system_health_monitoring_config.json [Nokia ixs7215] Support show system-health (#8771) 2021-09-17 12:01:12 +08:00
thermal_policy.json [devices]: Add support for the Nokia-7215 platform (#5827) 2020-11-18 17:00:40 -08:00