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)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 14 Mar 2012 13:14:52 +0000 (06:14 -0700)
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>

No differences found