]> git.proxmox.com Git - pve-network.git/commit
dhcp: dnsmasq: untaint when deleting configuration files
authorStefan Hanreich <s.hanreich@proxmox.com>
Tue, 28 Nov 2023 08:58:57 +0000 (09:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Nov 2023 10:04:37 +0000 (11:04 +0100)
commit24ab59e0af673d6804d252fbf81ca65ad7d1d1e8
tree7916c9c5a689a068cbed937cccaa534cb5273544
parent2664f295758acc2485f14fc327b8c1abc7149c3f
dhcp: dnsmasq: untaint when deleting configuration files

The current invocation is quite unsafe and triggers the taint mode of
Perl that is enabled for our API daemons, but not pvesh used on
cluster-wide apply.
Replacing it with dir_glob_foreach solves those issues.

Reported-By: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network/SDN/Dhcp/Dnsmasq.pm