Re: Unix::Pledge perl module

2015-11-20 Thread David Coppa
On Thu, Nov 19, 2015 at 10:30 PM, Andrew Fresh wrote: > On Thu, Nov 19, 2015 at 04:19:19PM -0500, Richard Farr wrote: >> I've put together a simple CPAN module that allows you to use pledge(2) >> in your Perl programs. Of course it will only work on -current. > > Way cool! I

Unix::Pledge perl module

2015-11-19 Thread Richard Farr
Hi misc@, I've put together a simple CPAN module that allows you to use pledge(2) in your Perl programs. Of course it will only work on -current. Simple example: $> perl -MUnix::Pledg|e -e '||pledge(||"stdio rpath"||, [||"/home/$ENV{USER}/.profile"||]);||open||(||my $fd||, ||">"||,

Re: Unix::Pledge perl module

2015-11-19 Thread Andrew Fresh
On Thu, Nov 19, 2015 at 04:19:19PM -0500, Richard Farr wrote: > I've put together a simple CPAN module that allows you to use pledge(2) > in your Perl programs. Of course it will only work on -current. Way cool! I too have been working on this a bit. Sorry that I got distracted from actually