문제

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?

도움이 되었습니까?

해결책

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...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top