Disclaimer: This is in a lab held together with duct tape and glue that doesn’t do anything important. Use at your own risk.
I hit this issue in Proxmox whenever trying to do anything with VMs:
TASK ERROR: clone failed: lvcreate ‘SDH/vm-202-disk-0’ error: Insecure dependency in exec while running with -T switch at /usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm line 176.


I’m not a Perl user, but Google tells me that it’s because Perl is set to operate in Taint mode thanks to the -T
parameter.
The file it’s referencing doesn’t actually contain the -T
parameter, so I went looking and sure enough a bunch of the Proxmox services contain the -T
parameter.

So a hacky one liner to remove the -T in those files:
sed -i 's|#!/usr/bin/perl -T|#!/usr/bin/perl|' /usr/bin/pveam /usr/bin/pveceph /usr/bin/pveproxy /usr/bin/spiceproxy /usr/bin/pvesr /usr/bin/vzdump /usr/bin/pvenode /usr/bin/pvedaemon
And a restart the services:
systemctl restart pveproxy pvedaemon
And presto, whatever important security feature and flag that never should be turned off is gone, and my Frankenstein lab lives to operate another day.