In C, you can edit your capabilities with cap_set_proc from libcap . How can I achieve the same in a Perl program?
cap_set_proc
libcap
Linux :: Prctl can meet your needs.
If not, you can use syscall () and try do this the hard way .
If this is unpleasant and too much (and I would find it), I'm sure CPAN welcomes you to contribute Linux :: CapNG links ...