Would it be better to remove the o and specify only the directories Apache needs to access? Or leave the o and deny the ones it shouldn't?
- Code: Select all
subject /usr/sbin/apache2 o {
/
/etc/services r
/home r
/usr/share/mysql/charsets/Index r
/var/run/mysqld/mysqld.sock rw
/etc/ssh h
/etc/grsec h
/dev/grsec h
/proc/kcore h
/proc/sys h
/etc/shadow h
/etc/passwd h
/var/log h
/dev/mem h
/dev/kmem h
/dev/port h
/dev/log h
-CAP_ALL
bind disabled (this will, obviously, need changing)
connect disabled
}