2
Profile Components and
Syntax
This chapter explains the components and syntax of Novell® AppArmor profiles. You
are ready to build Novell AppArmor profiles after you select the programs to profile.
For help with this, refer to
Section 1.2, “Determining Programs to Immunize”
(page 12).
To start building AppArmor profiles with YaST, proceed to
Chapter 3, Building and
Managing Profiles With YaST
(page 23). To build profiles using the AppArmor com-
mand line interface, proceed to
Chapter 4, Building Profiles via the Command Line
(page 45).
2.1 Breaking a Novell AppArmor
Profile into Its Parts
Novell AppArmor profile components are called Novell AppArmor rules. Currently
there are two main types of Novell AppArmor rules, path entries and capability entries.
Path entries specify what the process can access in the file system and capability entries
provide a more fine-grained control over what a confined process is allowed to do
through other system calls that require privileges. Includes are a type of meta rule or
directives that pull in path and capability entries from other files.
The easiest way of explaining what a profile consists of and how to create one is to
show the details of a sample profile. Consider, for example, the following shortened
profile for the program
/usr/lib/postfix/flush
(for the complete version, refer
to
/etc/apparmor.d/usr.lib.postfix.flush
):
Profile Components and Syntax
19