
WARNING
AppArmor is a powerful access control system and it is possible to lock
yourself out of your own machine to the point where you must boot the
machine from a rescue medium (such as the first medium of SUSE Linux
Enterprise Server) to regain control.
To prevent such a problem, always ensure that you have a running, uncon-
fined,
root
login on the machine being configured when you restart the
AppArmor module. If you damage your system to the point where logins
are no longer possible (for example, by breaking the profile associated
with the SSH daemon), you can repair the damage using your running
root
prompt then restart the AppArmor module.
24.2 Building AppArmor Profiles
The AppArmor module profile definitions are stored in the
/etc/apparmor.d
di-
rectory as plain text files. For a detailed description of the syntax of these files, refer
to
Chapter 21, Profile Components and Syntax
(page 237).
All files in the
/etc/apparmor.d
directory are interpreted as profiles and are
loaded as such. Renaming files in that directory is not an effective way of preventing
profiles from being loaded. You must remove profiles from this directory to prevent
them from being read and evaluated effectively.
You can use a text editor, such as vim, to access and make changes to these profiles.
The following options contain detailed steps for building profiles:
Adding or Creating AppArmor Profiles
Refer to
Section 24.3, “Adding or Creating an AppArmor Profile”
(page 290)
Editing AppArmor Profiles
Refer to
Section 24.4, “Editing an AppArmor Profile”
(page 290)
Deleting AppArmor Profiles
Refer to
Section 24.5, “Deleting an AppArmor Profile”
(page 290)
Building Profiles from the Command Line
289
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: ......