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)
commit28042fabf43b9a8ccfaa38f8c8187cc525e53fd3
treef881ccfdb821608683bebf4013a572464e798657
parent38305a4bab4be5d278443b057f7f5e97afb07f26
AppArmor: Fix the error case for chroot relative path name lookup

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