sonic-buildimage/dockers/docker-nat
Mai Bui 61a085e55e
Replace os.system and remove subprocess with shell=True (#12177)
Signed-off-by: maipbui <maibui@microsoft.com>
#### Why I did it
`subprocess` 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
remove `shell=True`, use `shell=False`
Replace `os` by `subprocess`
2022-11-04 10:48:51 -04:00
..
base_image_files Changes in sonic-buildimage to support the NAT feature (#3494) 2020-01-29 17:40:43 -08:00
critical_processes [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
Dockerfile.j2 Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
restore_nat_entries.py Replace os.system and remove subprocess with shell=True (#12177) 2022-11-04 10:48:51 -04:00
start.sh [docker-nat]: use service dependency in supervisord to start servicesx 2020-05-22 11:01:28 -07:00
supervisord.conf [dockers][supervisor] Increase event buffer size for process exit listener; Set all event buffer sizes to 1024 (#7083) 2021-03-27 21:14:24 -07:00