apparmor: fix apparmor_query data
authorJohn Johansen <john.johansen@canonical.com>
Fri, 9 Jun 2017 09:28:19 +0000 (02:28 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:33 +0000 (17:11 -0700)
commit5262ef60b1bcc40e17476fda53284621af9b0bab
treeb734286630e135265a4ab3dd1fa47278d7344c0b
parent60285eb3e7c8827e00e2f2b54561a8cca07d802f
apparmor: fix apparmor_query data

The data being queried isn't always the current profile and a lookup
relative to the current profile should be done.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c