sonic-buildimage/platform/marvell-armhf/sonic-platform-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
..
7215 [nokia] Replace os.system and remove subprocess with shell=True (#12100) 2022-12-01 12:12:50 -05:00
debian [Platform][ixs7215]: Platform API test required files with Updates and Improvements (#6738) 2021-02-11 13:17:00 -08:00
entropy.py [Marevell] Fix armhf build failure (#9875) 2022-02-28 13:40:58 +08:00
inband_mgmt.sh [Nokia ixs7215] Add SW assist for platform entropy & fix inband mgmt support (#6417) 2021-01-12 16:59:42 -08:00
nokia-7215_plt_setup.sh [Marvell-armhf] Fixing issues related to partition label (#10203) 2022-03-24 07:24:13 -07:00