chrooting and device permissions
Hello,
I'm currently trying to chroot an apache server on my system (RedHat EL5) with mod_perl and mod_ssl , but i encounter some difficulties. I have permissions problem with /dev/null /dev/random /dev/urandom.
To debug my chrooted apache, i'm using strace.
When i'm creating a node "null" (mknod null c 1 3) using mknode in my chrooted /dev/
I obtain the following error when running strace with my chrooted apache
open("/dev/null", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
but when i removed it and make "touch null"
i don't have any problem.
I chmoded the node to 777 and changed his owner, but i have the same error.
I set SELinux to disabled in /etc/sysconfig/selinux
Any ideas ?
Thanks
|