1
# $Id: logprof.conf.pod 7 2006-04-12 03:21:58Z steve-beattie $
2
# This publication is intellectual property of Novell Inc. Its contents
3
# can be duplicated, either in part or in whole, provided that a copyright
4
# label is visibly located on each copy.
6
# All information found in this book has been compiled with utmost
7
# attention to detail. However, this does not guarantee complete accuracy.
8
# Neither SUSE LINUX GmbH, the authors, nor the translators shall be held
9
# liable for possible errors or the consequences thereof.
11
# Many of the software and hardware descriptions cited in this book
12
# are registered trademarks. All trade names are subject to copyright
13
# restrictions and may be registered trade marks. SUSE LINUX GmbH
14
# essentially adheres to the manufacturer's spelling.
16
# Names of products and trademarks appearing in this book (with or without
17
# specific notation) are likewise subject to trademark and trade protection
18
# laws and may thus fall under copyright restrictions.
20
# Please direct suggestions and comments to apparmor-general@forge.novell.com.
27
logprof.conf - configuration file for expert options that modify the
28
behavior of the AppArmor logprof(1) program.
32
The logprof(1) program can be configured to have certain default behavior
33
by the contents of logprof.conf.
35
The B<[qualifiers]> section lists specific programs that should have
36
a subset of the full ix/px/ux list when asking what mode to execute
39
Since creating a separate profile for /bin/bash is dangerous, we can
40
specify that for /bin/bash, only (I)nherit, (U)nconstrained, and (D)eny
41
should be allowed options and only those will show up in the prompt when
42
we're asking about adding that to a profile.
44
Likewise, if someone currently exec's /bin/mount in ix or px mode, things
45
won't work, so we can provide only (U)nconstrained and (D)eny as options.
47
And certain apps like grep, awk, sed, cp, and mkdir should always
48
inherit the parent profile rather than having their own profile or
49
running unconfined, so for them we can specify that only (I)nherit and
50
(D)eny are the allowed options.
52
Any programs that are not listed in the qualifiers section get the full
53
(I)nherit / (P)rofile / (U)nconstrained / (D)eny option set.
55
If the user is doing something tricky and wants different behavior,
56
they can tweak or remove the corresponding line in the conf file.
58
The B<[defaulthat]> section lists changehat-aware programs and what hat
59
logprof(1) will collapse the entries to for that program if the user
60
specifies that the access should be allowed, but should not have it's
63
The B<[globs]> section allows modification of the logprof rule engine
64
with respect to globbing suggestions that the user will be prompted with.
66
The format of each line is-- "<perl glob> = <apparmor glob>".
68
When logprof(1) asks about a specific path, if the perl glob matches the
69
path, it replaces the part of the path that matched with the corresponding
70
apparmor glob and adds it to the list of globbing suggestions.
72
Lines starting with # are comments and are ignored.
77
# things will very likely be painfully broken if bash has it's own profile
80
# mount doesn't work if it's confined
83
# these helper utilities should inherit the parent profile and
84
# shouldn't have their own profiles
91
/usr/sbin/httpd2 = DEFAULT_URI
92
/usr/sbin/httpd2-prefork = DEFAULT_URI
95
# /foo/bar/lib/libbaz.so -> /foo/bar/lib/lib*
96
/lib/lib[^\/]+so[^\/]*$ = /lib/lib*so*
98
# strip kernel version numbers from kernel module accesses
99
^/lib/modules/[^\/]+\/ = /lib/modules/*/
101
# strip pid numbers from /proc accesses
102
^/proc/\d+/ = /proc/*/
107
None. Please report any you find to bugzilla at
108
L<http://bugzilla.novell.com>.
112
apparmor(7), apparmor.d(5), enforce(1), change_hat(2),
113
complain(1), logprof(1), genprof(1), and
114
L<http://forge.novell.com/modules/xfmod/project/?apparmor>.