AppArmor Policy Reviews (DRAFT)

When reviewing policy for AppArmor, please consider the following:

General advice

Execute rules

Ux/ux

'Ux' and 'ux' allow for transitions to the unconfined profile. 'Ux' triggers glibc's secure exec to protect against things like LD_PRELOAD (full list is in glibc's unsecvars.h).

Px/Pix/PUx/px

'Px' and 'px' allow for transitions to another defined profile. 'Px' triggers glibc's secure exec. 'Pix' will try to transition to an existing profile, otherwise inherit this profile. 'PUx' is the same except falls back to unconfined.

Cx/cx

'Cx' and 'cx' allow for transitions to a defined child profile. 'Cx' triggers glibc's secure exec.

ix

'ix' is generally considered ok since the callee inherits the profile of the caller. This may result in a wider permission set than is strictly required for the caller or the callee. Use of child profiles (Cx) may be used in these cases.

Considerations

When profiling, it is important to keep the following in mind:

SecurityTeam/AppArmorPolicyReview (last edited 2013-03-25 15:32:46 by jdstrand)