Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit linux capabilities in Perl

In a C program, you can edit your capabilities with cap_set_proc from libcap. How can I achieve the same in a Perl program?

like image 952
user49740 Avatar asked May 16 '13 16:05

user49740


1 Answers

Linux::Prctl may meet your needs.

If not, you can use syscall() and try to do it the hard way.

If that's unpalatable, too (and I would find it so), I'm sure CPAN would welcome you to contribute Linux::CapNG bindings...

like image 156
pilcrow Avatar answered Sep 25 '22 09:09

pilcrow