php file() and access to /proc/dev/net
Posted: Mon Nov 24, 2003 7:03 am
Hello. I have a debian grsec enabled, 2.4.21 kernel patched with grsec-1.9.11. I chose the "medium" range of grsec from the menuconfig.
Now I have a php app on my website which reads /proc/dev/net for giving some info on a webpage.
Since I enabled grsec in the kernel I have the following error :
Warning: file("/proc/net/dev") - Permission denied in /home/server/html/syscon/modules/mod_iflist.php on line 23
I added "/proc/net rwx" and "/proc/net/dev r" in the /etc/grsec/acl and ran gradm -E, but I still get the error... What did I forget ?
Thank you
Eric
Now I have a php app on my website which reads /proc/dev/net for giving some info on a webpage.
Since I enabled grsec in the kernel I have the following error :
Warning: file("/proc/net/dev") - Permission denied in /home/server/html/syscon/modules/mod_iflist.php on line 23
I added "/proc/net rwx" and "/proc/net/dev r" in the /etc/grsec/acl and ran gradm -E, but I still get the error... What did I forget ?
Thank you
Eric