AppArmor: Fix the error case for chroot relative path name lookup
authorJohn Johansen <john.johansen@canonical.com>
Thu, 16 Feb 2012 14:21:30 +0000 (06:21 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 27 Feb 2012 19:38:23 +0000 (11:38 -0800)
When a chroot relative pathname lookup fails it is falling through to
do a d_absolute_path lookup.  This is incorrect as d_absolute_path should
only be used to lookup names for namespace absolute paths.

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

Simple merge