
^sysinfo {
#include <abstractions/base>
/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
rcapparmor restart
at a
terminal window as
root
.
4
Restart Apache by entering
rcapache2 restart
at a terminal window as
root
.
5
Enter
http://hostname/sysinfo/
into a browser to receive the system
information that phpsysinfo delivers.
6
Locate configuration errors by going to
/var/log/audit/audit.log
or
running
dmesg
and looking for any rejections in the output.
Profiling Your Web Applications Using ChangeHat
85