]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
apparmor: ensure the target profile name is always audited
authorJohn Johansen <john.johansen@canonical.com>
Wed, 20 Apr 2016 21:18:18 +0000 (14:18 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 12 Jul 2016 15:43:10 +0000 (08:43 -0700)
commitf7da2de01127b58d93cebeab165136d0998e7b1a
treee61ea1a2516b02cd42c3275dd29b3d32a93889dd
parent7ee6da25dcce27b6023a8673fdf8be98dcf7cacf
apparmor: ensure the target profile name is always audited

The target profile name was not being correctly audited in a few
cases because the target variable was not being set and gotos
passed the code to set it at apply:

Since it is always based on new_profile just drop the target var
and conditionally report based on new_profile.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
security/apparmor/domain.c