AppArmor: fix mapping of META_READ to audit and quiet flags
authorJohn Johansen <john.johansen@canonical.com>
Wed, 22 Feb 2012 08:42:08 +0000 (00:42 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 27 Feb 2012 19:38:22 +0000 (11:38 -0800)
commit38305a4bab4be5d278443b057f7f5e97afb07f26
tree06122a0380bc06de07c2b462bfa2f306ab12af87
parent8b964eae204d791421677ec56b94a7b18cf8740d
AppArmor: fix mapping of META_READ to audit and quiet flags

The mapping of AA_MAY_META_READ for the allow mask was also being mapped
to the audit and quiet masks. This would result in some operations being
audited when the should not.

This flaw was hidden by the previous audit bug which would drop some
messages that where supposed to be audited.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Kees Cook <kees@ubuntu.com>
security/apparmor/file.c