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)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:23:52 +0000 (13:23 -0700)
commitc9709220867ebe38e9c72b0ab367f66ef07c761b
tree04cf00d96047d1ee6d096841af6c5239d4f3c53a
parentf22fde5d47a3631d34a12f1c5017c444e84f5090
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>
(cherry picked from commit fbba8d89acea5d628d1d076b1d8962db438ff832)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/path.c