
Glob w/Ext
This modifies the original directory path while retaining the filename
extension. For example,
/etc/apache2/file.ext
becomes
/etc/
apache2/*.ext
, adding the wild card (asterisk) in place of the file-
name. This allows the program to access all files in the suggested direc-
tory that end with the
.ext
extension.
Abort
Aborts aa-logprof, losing all rule changes entered so far and leaving all
profiles unmodified.
Finish
Closes aa-logprof, saving all rule changes entered so far and modifying
all profiles.
6
To view and edit your profile using vim, enter
vim
/etc/apparmor.d/
profilename
in a terminal window.
7
Restart AppArmor and reload the profile set including the newly created one
using the
rcapparmor restart
command.
aa-logprof—Scanning the System Log
aa-logprof is an interactive tool used to review the learning or complain mode output
found in the log entries under
/var/log/audit/audit.log
or
/var/log/
messages
(if auditd is not running) and generate new entries in Novell AppArmor
security profiles.
When you run aa-logprof, it begins to scan the log files produced in learning or complain
mode and, if there are new security events that are not covered by the existing profile
set, it gives suggestions for modifying the profile. The learning or complain mode traces
program behavior and enters it in the log. aa-logprof uses this information to observe
program behavior.
If a confined program forks and executes another program, aa-logprof sees this and
asks the user which execution mode should be used when launching the child process.
The execution modes ix, px, Px, ux, and Ux are options for starting the child process.
If a separate profile exists for the child process, the default selection is px. If one does
Building Profiles via the Command Line
61