
24.3 Adding or Creating an AppArmor
Profile
To add or create an AppArmor profile for an application, you can use a systemic or
stand-alone profiling method, depending on your needs. Learn more about these two
approaches in
Section 24.6, “Two Methods of Profiling”
(page 291).
24.4 Editing an AppArmor Profile
The following steps describe the procedure for editing an AppArmor profile:
1
If you are not currently logged in as
root
, enter
su
in a terminal window.
2
Enter the
root
password when prompted.
3
Go to the profile directory with
cd /etc/apparmor.d/
.
4
Enter
ls
to view all profiles currently installed.
5
Open the profile to edit in a text editor, such as vim.
6
Make the necessary changes then save the profile.
7
Restart AppArmor by entering
rcapparmor restart
in a terminal window.
24.5 Deleting an AppArmor Profile
The following steps describe the procedure for deleting an AppArmor profile.
1
If you are not currently logged in as
root
, enter
su
in a terminal window.
2
Enter the
root
password when prompted.
3
Go to the AppArmor directory with
cd /etc/apparmor.d/
.
290
Security Guide
Содержание 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: ......