Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want all the AppArmor profiles activated wherever applicable permanently, how can I do that?

share|improve this question

1 Answer 1

up vote 8 down vote accepted
+100

To permanently put all profiles into enforce mode:

sudo aa-enforce /etc/apparmor.d/*

To permanently put all profiles into complain mode:

sudo aa-complain /etc/apparmor.d/*

To verify the current status of apparmor:

sudo aa-status

complain mode will log violations against the application profiles, whereas enforce mode will strictly enforce the application profiles.

share|improve this answer
    
By the way, would you happen to know what each and every AppArmor profile restricts and allows? –  Oxwivi Jun 27 '11 at 16:44
1  
@Oxwivi: eheh, big question :) Take a look at man apparmor.d with the /etc/apparmor.d/* files opened. apparmor can enforce many limits on syscalls, file permissions, network stack access, etc. It is a security model for processes instead of users. –  Vanni Totaro Jun 27 '11 at 23:09
    
Yes, well, I don't know how to interpret it. I asked a seperate question for that specifically about Firefox's AppArmor. –  Oxwivi Jun 28 '11 at 4:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.