
The directory directive works similarly to the location directive, except it refers to a
path in the file system as in the following example:
<Directory "/srv/www/www.immunix.com/docs">
# Note lack of trailing slash
AAHatName immunix.com
</Directory>
Example:
The program phpsysinfo is used to illustrate a location directive in the
following example. The tarball can be downloaded from
http://phpsysinfo
.sourceforge.net
.
1
After downloading the tarball, install it into
/srv/www/htdocs/
phpsysinfo
.
2
Create
/etc/apache2/conf.d/phpsysinfo.conf
and add the following
text to it:
<Location "/phpsysinfo">
AAHatName phpsysinfo
</Location>
The following hat should then work for phpsysinfo:
/usr/sbin/httpd2-prefork {
...
^phpsysinfo {
#include <abstractions/bash>
#include <abstractions/nameservice>
/bin/basename
ixr,
/bin/bash
ixr,
/bin/df
ixr,
/bin/grep
ixr,
/bin/mount
Ux,
/bin/sed
ixr,
/dev/bus/usb/
r,
/dev/bus/usb/**
r,
/dev/null
w,
/dev/tty
rw,
/dev/urandom
r,
/etc/SuSE-release
r,
/etc/ld.so.cache
r,
/etc/lsb-release
r,
/etc/lsb-release.d/
r,
/lib/ld-2.6.1.so
ixr,
/proc/**
r,
/sbin/lspci
ixr,
324
Security Guide
Содержание LINUX ENTERPRISE DESKTOP 11
Страница 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Страница 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Страница 10: ......
Страница 29: ...Part I Authentication...
Страница 30: ......
Страница 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Страница 126: ......
Страница 127: ...Part II Local Security...
Страница 128: ......
Страница 158: ......
Страница 173: ...Part III Network Security...
Страница 174: ......
Страница 194: ......
Страница 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Страница 210: ......
Страница 228: ......
Страница 229: ...Part IV Confining Privileges with Novell AppArmor...
Страница 230: ......
Страница 274: ......
Страница 300: ......
Страница 328: ......
Страница 340: ......
Страница 342: ......
Страница 386: ......
Страница 387: ...Part V The Linux Audit Framework...
Страница 388: ......