PERL CGI - Apache chroot

MK public at kubikcz.net
Sat Jun 3 02:04:20 PDT 2006


Hello to all

I'm trying to make a simple PERL CGI script for wakeing computers on LAN. 
For this purpose I installed p5-Net-Wake-0.02.tgz  PERL modul from packages.

Script works but only in not chrooted Apache.( packet is sent ) For chrooted 
Apache in OpenBSD I followed help instructions on 
http://livenudefrogs.com/~anubis/servers/apache_perl_chroot.shtml.

Script is executed without any complains but packet is not sent. Apache 
error log is clean. I also tryed to make a list of necessary files by 
Systrace -A.

Maybe there is a problem because the modul needs access to:

        native-fsread: filename eq "/etc/malloc.conf" then permit
        native-fsread: filename eq "/dev/arandom" then permit

But I'm not sure as I don't have any experience with systrace.

Thank you for any help.

MK



More information about the Openbsd-newbies mailing list