AppArmor: Retrieve the dentry_path for error reporting when path lookup fails
authorJohn Johansen <john.johansen@canonical.com>
Thu, 16 Feb 2012 14:28:50 +0000 (06:28 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 14 Mar 2012 13:15:22 +0000 (06:15 -0700)
commitfbba8d89acea5d628d1d076b1d8962db438ff832
tree1e3a27cb78369676de62f8587d84d281224df1ff
parent33e521acff709d275950ec5bf8dd577d873cd61e
AppArmor: Retrieve the dentry_path for error reporting when path lookup fails

When __d_path and d_absolute_path fail due to the name being outside of
the current namespace no name is reported.  Use dentry_path to provide
some hint as to which file was being accessed.

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