sonic-buildimage/device/nokia
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
..
armhf-nokia_ixs7215_52x-r0 [nokia] Replace os.system and remove subprocess with shell=True (#12100) 2022-12-01 12:12:50 -05:00
x86_64-nokia_ixr7250e_36x400g-r0 Use the macsec_enabled flag in platform to enable macsec feature state (#11998) 2022-11-08 11:03:38 -08:00
x86_64-nokia_ixr7250e_sup-r0 [Nokia] Update Nokia platform IXR7250E device data (#11611) 2022-10-10 18:49:26 -07:00