Novell APPARMOR Admin Manual page 89

Hide thumbs Also See for APPARMOR:
Table of Contents

Advertisement

Apache Configuration for mod_change_hat
2. Create /etc/apache2/conf.d/sysinfo.conf and add the fol-
lowing text to it:
<Location "/sysinfo">
ImmHatName sysinfo
</Location>
The following hat should then work for phpsyinfo:
^sysinfo {
#include <program-chunks/base-files>
/bin/df
/bin/bash
/dev/tty
/etc/SuSE-release
/etc/fstab
/etc/hosts
/etc/mtab
/proc/**
/sbin/lspci
/srv/www/htdocs/sysinfo/**
/sys/bus/pci/devices
/sys/devices/**
/usr/bin/who
/usr/share/pci.ids
/var/log/apache2/{access,error}_log
/var/run/utmp
}
3. Reload subdomain profiles by typing /etc/init.d/subdomain
restart into a terminal window as root.
4. Restart apache by typing
terminal window while logged in as root.
5. Enter
http://hostname/sysinfo/
system information that phpsysinfo delivers.
/etc/init.d/apache2 restart
into a browser to receive the
ix,
ix,
rw,
r,
r,
r,
r,
r,
ix,
r,
r,
r,
ix,
r,
w,
r,
into a
89

Advertisement

Table of Contents
loading

Table of Contents