Provided by: apparmor_2.5.1~rc1-0ubuntu2_i386
apparmor_parser - loads AppArmor profiles into the kernel
apparmor_parser [-adrR] [--add] [--debug] [--replace] [--remove]
[--preprocess] [--Include n] [--base n] [ --Complain
apparmor_parser [-hv] [--help] [--version]
apparmor_parser is used to import new apparmor.d(5) profiles into the
Linux kernel. The profiles restrict the operations available to
processes by executable name.
The profiles are loaded into the Linux kernel by the apparmor_parser
program, which takes its input from standard input. The input supplied
to apparmor_parser should be in the format described in apparmor.d(5).
Insert the AppArmor definitions given into the kernel. This is the
default action. This gives an error message if a AppArmor
definition by the same name already exists in the kernel, or if the
parser doesn't understand its input. It reports when an addition
This flag is required if an AppArmor definition by the same name
already exists in the kernel; used to replace the definition
already in the kernel with the definition given on standard input.
This flag is used to remove an AppArmor definition already in the
kernel. Note that it still requires a complete AppArmor definition
as described in apparmor.d(5) even though the contents of the
definition aren't used.
For the profile to load in complain mode.
Load a binary (cached) profile, as produced with the -S option.
Produce a list of policies from a given set of profiles (implies
Writes a binary (cached) profile to stdout (implies -K and -T).
-b n, --base n
Set the base directory for resolving #include directives defined as
-I n, --Include n
Add element n to the search path when resolving #include directives
defined as an absolute paths.
-f n, --subdomainfs n
Set the location of the apparmor security filesystem (default is
-m n, --match-string n
Only use match features "n".
-n n, --namespace-string n
Force a profile to load in the namespace "n".
In the case of profiles that are loading on systems were
READ_IMPLIES_EXEC is set in the kernel for a given process, load
the profile so that any "r" flags are processed as "mr".
Report the cache processing (hit/miss details) when loading or
saving cached profiles.
Perform no caching at all: disables -W, implies -T.
By default, if a profile's cache is found in /etc/apparmor.d/cache/
and the timestamp is newer than the profile, it will be loaded from
the cache. This option disables this cache loading behavior.
Write out cached profiles to /etc/apparmor.d/cache/. Off by
default. In cases where abstractions have been changed, and the
parser is running with "--replace", it may make sense to also use
"--skip-read-cache" with the "--write-cache" option.
Perform all actions except the actual loading of a profile into the
kernel. This is useful for testing profile generation, caching,
etc, without making changes to the running kernel profiles.
Do not report on the profiles as they are loaded, and not show
Report on the profiles as they are loaded, and show warnings.
Print the version number and exit.
Dump the input profile to stdout out applying preprocessing
flattening includes into the output profile.
Given once, only checks the profiles to ensure syntactic
correctness. Given twice, dumps its interpretation of the profile
Give a quick reference guide.
None known. If you find any, please report them to bugzilla at
apparmor(7), apparmor.d(5), subdomain.conf(5), change_hat(2), and