• If the example program (
program1
) is in your path, use:
aa-complain [
program1 program2
...]
• If the program is not in your path, specify the entire path as follows:
aa-complain /sbin/
program1
• If the profiles are not in
/etc/apparmor.d
, use the following to override the
default location:
aa-complain
/path/to/profiles/ program1
• Specify the profile for
program1
as follows:
aa-complain /etc/apparmor.d/sbin.
program1
Each of the above commands activates the complain mode for the profiles or programs
listed. If the program name does not include its entire path, aa-complain searches
$PATH
for the program. For instance,
aa-complain /usr/sbin/*
finds profiles associ-
ated with all of the programs in
/usr/sbin
and puts them into complain mode.
aa-complain /etc/apparmor.d/*
puts all of the profiles in
/etc/apparmor
.d
into complain mode.
TIP: Toggling Profile Mode with YaST
YaST offers a graphical front-end for toggling complain and enforce mode. See
Section 23.6.2, “Changing the Mode of Individual Profiles”
(page 284) for infor-
mation.
aa-enforce—Entering Enforce Mode
The enforce mode detects violations of AppArmor profile rules, such as the profiled
program accessing files not permitted by the profile. The violations are logged and not
permitted. The default is for enforce mode to be enabled. To log the violations only,
but still permit them, use complain mode. Enforce toggles with complain mode.
296
Security Guide
Summary of Contents for LINUX ENTERPRISE DESKTOP 11
Page 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Page 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Page 10: ......
Page 29: ...Part I Authentication...
Page 30: ......
Page 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Page 126: ......
Page 127: ...Part II Local Security...
Page 128: ......
Page 158: ......
Page 173: ...Part III Network Security...
Page 174: ......
Page 194: ......
Page 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Page 210: ......
Page 228: ......
Page 229: ...Part IV Confining Privileges with Novell AppArmor...
Page 230: ......
Page 274: ......
Page 300: ......
Page 328: ......
Page 340: ......
Page 342: ......
Page 386: ......
Page 387: ...Part V The Linux Audit Framework...
Page 388: ......