Step 3
(page 293)) and learn the access needs of the program so it runs properly.
With this information, you can decide how secure to make the profile.
Refer to
Section “aa-complain—Entering Complain or Learning Mode”
(page 295)
for more detailed instructions for using learning or complain mode.
3
Exercise your application.
Run your application and exercise its functionality. How much to exercise the
program is up to you, but you need the program to access each file representing
its access needs. Because the execution is not being supervised by aa-genprof,
this step can go on for days or weeks and can span complete system reboots.
4
Analyze the log.
In systemic profiling, run aa-logprof directly instead of letting aa-genprof run it
(as in stand-alone profiling). The general form of aa-logprof is:
aa-logprof [ -d
/path/to/profiles
] [ -f
/path/to/logfile
]
Refer to
Section “aa-logprof—Scanning the System Log”
(page 306) for more
information about using aa-logprof.
5
Repeat
Step 3
(page 293) and
Step 4
(page 293).
This generates optimum profiles. An iterative approach captures smaller data
sets that can be trained and reloaded into the policy engine. Subsequent iterations
generate fewer messages and run faster.
6
Edit the profiles.
You might want to review the profiles that have been generated. You can open
and edit the profiles in
/etc/apparmor.d/
using vim.
7
Return to enforce mode.
This is when the system goes back to enforcing the rules of the profiles, not just
logging information. This can be done manually by removing the
flags=(complain)
text from the profiles or automatically by using the
aa-enforce
command, which works identically to the
aa-complain
com-
mand, except it sets the profiles to enforce mode. This functionality is also
Building Profiles from the Command Line
293
Содержание LINUX ENTERPRISE DESKTOP 11
Страница 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Страница 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Страница 10: ......
Страница 29: ...Part I Authentication...
Страница 30: ......
Страница 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Страница 126: ......
Страница 127: ...Part II Local Security...
Страница 128: ......
Страница 158: ......
Страница 173: ...Part III Network Security...
Страница 174: ......
Страница 194: ......
Страница 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Страница 210: ......
Страница 228: ......
Страница 229: ...Part IV Confining Privileges with Novell AppArmor...
Страница 230: ......
Страница 274: ......
Страница 300: ......
Страница 328: ......
Страница 340: ......
Страница 342: ......
Страница 386: ......
Страница 387: ...Part V The Linux Audit Framework...
Страница 388: ......