
<Location "/sysinfo">
ImmHatName sysinfo
</Location>
The following hat should then work for phpsyinfo:
^sysinfo {
#include <program-chunks/base-files>
/bin/df ix,
/bin/bash ix,
/dev/tty rw,
/etc/SuSE-release r,
/etc/fstab r,
/etc/hosts r,
/etc/mtab r,
/proc/** r,
/sbin/lspci ix,
/srv/www/htdocs/sysinfo/** r,
/sys/bus/pci/devices r,
/sys/devices/** r,
/usr/bin/who ix,
/usr/share/pci.ids r,
/var/log/apache2/{access,error}_log w,
/var/run/utmp r,
}
3
Reload Novell AppArmor profiles by entering
rcsubdomain restart
at a
terminal window as root.
4
Restart Apache by entering
rcapache2 restart
at a terminal window while
logged in as root.
5
Enter
http://hostname/sysinfo/
into a browser to receive the system
information that phpsysinfo delivers.
6
Track down configuration errors by going to
/var/log/syslog
or running
dmesg
and looking for any rejections in the output.
Profiling Your Web Applications Using ChangeHat Apache
115
Summary of Contents for APPARMOR 1.2
Page 1: ...Novell AppArmor Powered by Immunix Administration Guide www novell com 1 2 09 29 2005...
Page 4: ......
Page 14: ......
Page 116: ......
Page 128: ......