sonic-buildimage/files/scripts
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
..
arp_update [arp_update]: Set failed IPv6 neighbors to incomplete (#11919) 2022-09-02 13:40:40 -07:00
asic_status.py [systemd] ASIC status based service bringup on VOQ chassis (#7477) 2021-07-27 23:02:49 -07:00
asic_status.sh [systemd] ASIC status based service bringup on VOQ chassis (#7477) 2021-07-27 23:02:49 -07:00
bgp.sh BGP Service script path and error fix (#5183) 2020-08-15 12:09:10 -07:00
configdb-load.sh [MultiDB] use sonic-db-cli PING and fix wrong multiDB API in NAT (#4541) 2020-05-06 15:41:28 -07:00
core_cleanup.py [Python] Align files in root dir, dockers/ and files/ with PEP8 standards (#6109) 2020-12-03 15:57:50 -08:00
database.sh [services] kill container on stop in warm/fast mode (#10510) 2022-09-19 19:34:33 +03:00
gbsyncd-platform.sh [gearbox] provide common gbsyncd.service.j2 to start for platform specific gbsyncd docker (#9332) 2021-11-23 10:44:29 -08:00
gbsyncd.sh Address Review Comment to define SONIC_GLOBAL_DB_CLI in gbsyncd.sh (#11857) 2022-08-29 08:19:28 -07:00
lldp.sh [systemd] ASIC status based service bringup on VOQ chassis (#7477) 2021-07-27 23:02:49 -07:00
mark_dhcp_packet.py Replace os.system and remove subprocess with shell=True (#12177) 2022-11-04 10:48:51 -04:00
mgmt-framework.sh [services] kill container on stop in warm/fast mode (#10510) 2022-09-19 19:34:33 +03:00
radv.sh [services] kill container on stop in warm/fast mode (#10510) 2022-09-19 19:34:33 +03:00
service_mgmt.sh [services] kill container on stop in warm/fast mode (#10510) 2022-09-19 19:34:33 +03:00
snmp.sh [services] kill container on stop in warm/fast mode (#10510) 2022-09-19 19:34:33 +03:00
sonic-netns-exec [sonic-netns-exec]: use "$@" to reflects all positional parameters as they were set initially (#4375) 2020-04-07 00:05:47 -07:00
supervisor-proc-exit-listener Remove swsssdk from rules and image. (#11469) 2022-08-25 08:35:51 +08:00
swss.sh [docker-macsec]: Add dependencies of MACsec (#11770) 2022-09-08 23:45:06 +08:00
syncd_common.sh [swss.sh/syncd.sh] Trap only on EXIT (#11590) 2022-08-10 20:57:07 -07:00
syncd.sh [syncd.sh] 'sxdkernel start' => 'sxdkernel restart' (#11718) 2022-08-15 13:35:34 -07:00
teamd.sh [teamd.sh] kill teamd docker on warm shutdown for faster shutdown (#10219) 2022-03-15 09:20:36 +02:00
telemetry.sh [services] kill container on stop in warm/fast mode (#10510) 2022-09-19 19:34:33 +03:00
update_chassisdb_config In modular chassis, add CHASSIS_STATE_DB on control card (#5624) 2020-12-15 17:15:00 -08:00
write_standby.py [mux] skip mux operations during warm shutdown (#11937) 2022-09-02 13:50:42 -07:00