AppArmor: Fix error returned when a path lookup is disconnected
authorJohn Johansen <john.johansen@canonical.com>
Sat, 10 Mar 2012 19:19:51 +0000 (11:19 -0800)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:23:49 +0000 (13:23 -0700)
commit240ab84b51025903edac6bdd50cbe26dc03f48bc
tree84ef6363615d8cead62956fc4547b555f2a34e9d
parent538a067d9615c5fc95c112537becf6ef745b17ad
AppArmor: Fix error returned when a path lookup is disconnected

The returning of -ESATLE when a path lookup fails as disconnected is wrong.
Since AppArmor is rejecting the access return -EACCES instead.

This also fixes a bug in complain (learning) mode where disconnected paths
are denied because -ESTALE errors are not ignored causing failures that
can change application behavior.

Signed-off-by: John Johansen <john.johansen@canonical.com>
(cherry picked from commit ef9a762279c9ce98c592fb144b31898411feb94d)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/path.c