User Tools

Site Tools


apparmor:enable_an_apparmor_profile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apparmor:enable_an_apparmor_profile [2016/07/28 09:51] – created peterapparmor:enable_an_apparmor_profile [2019/11/25 22:32] (current) – removed peter
Line 1: Line 1:
-====== AppArmor - Enable an AppArmor Profile ====== 
- 
-First, as the profile may have previously been disabled, re-enable the disabled profile by removing the symbolic link to the profile in **/etc/apparmor.d/disable/**.   
- 
-<code bash> 
-sudo rm /etc/apparmor.d/disable/profile.name 
-</code> 
- 
-Then load the profile using the **-a** option. 
- 
-<code bash> 
-cat /etc/apparmor.d/profile.name | sudo apparmor_parser -a 
-</code> 
- 
- 
-===== Disable a profile ===== 
- 
-The **/etc/apparmor.d/disable** directory can be used along with the **apparmor_parser -R** option to disable a profile. 
- 
-<code bash> 
-sudo ln -s /etc/apparmor.d/profile.name /etc/apparmor.d/disable/ 
-sudo apparmor_parser -R /etc/apparmor.d/profile.name 
-</code> 
  
apparmor/enable_an_apparmor_profile.1469699505.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki