sonic-buildimage/dockers/docker-lldp
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 [Monit] Deprecate the feature of monitoring the critical processes by Monit (#7676) 2021-06-04 10:16:53 -07:00
critical_processes [docker] Correct the lldp-syncd program name in critical_process file. (#4862) 2020-06-28 11:08:30 -07:00
docker-lldp-init.sh [supervisord]: use abspath as supervisord entrypoint (#5995) 2020-11-22 21:18:44 -08:00
Dockerfile.j2 Upgrade LLDP docker to Bullseye (#11628) 2022-08-09 17:05:36 -07:00
lldpd [dockers] Rename 'docker-lldp-sv2' to 'docker-lldp' (#4700) 2020-06-09 09:09:56 -07:00
lldpd.conf.j2 [lldp]: Add verification IPv4 address on LLDP conf Jinja2 Template (#5699) 2020-11-07 10:30:41 -08:00
lldpdSysDescr.conf.j2 [docker-lldp]: sonic advertise meaningful SysDescription instead of debian (#6114) 2021-01-06 12:24:57 -08:00
lldpmgrd Replace os.system and remove subprocess with shell=True (#12177) 2022-11-04 10:48:51 -04:00
start.sh [docker-lldp]: sonic advertise meaningful SysDescription instead of debian (#6114) 2021-01-06 12:24:57 -08:00
supervisord.conf.j2 [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
waitfor_lldp_ready.sh [dockers] Rename 'docker-lldp-sv2' to 'docker-lldp' (#4700) 2020-06-09 09:09:56 -07:00