diff options
author | John Johansen <john.johansen@canonical.com> | 2013-02-18 16:02:34 -0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2013-04-28 00:35:40 -0700 |
commit | e573cc30bb36df23fb49a29d96e6c6333d17f59c (patch) | |
tree | e86a839b98a6d60c1e6a645a460f0fe1687e2595 | |
parent | 50c5ecd5d8ffb0e549676b8fd9781e3b2fd751a0 (diff) | |
download | op-kernel-dev-e573cc30bb36df23fb49a29d96e6c6333d17f59c.zip op-kernel-dev-e573cc30bb36df23fb49a29d96e6c6333d17f59c.tar.gz |
apparmor: fix error code to failure message mapping for name lookup
-ESTALE used to be incorrectly used to indicate a disconnected path, when
name lookup failed. This was fixed in commit e1b0e444 to correctly return
-EACCESS, but the error to failure message mapping was not correctly updated
to reflect this change.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Steve Beattie <sbeattie@ubuntu.com>
-rw-r--r-- | security/apparmor/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/path.c b/security/apparmor/path.c index e91ffee..35b394a 100644 --- a/security/apparmor/path.c +++ b/security/apparmor/path.c @@ -174,7 +174,7 @@ static int get_name_to_buffer(struct path *path, int flags, char *buffer, if (info && error) { if (error == -ENOENT) *info = "Failed name lookup - deleted entry"; - else if (error == -ESTALE) + else if (error == -EACCES) *info = "Failed name lookup - disconnected path"; else if (error == -ENAMETOOLONG) *info = "Failed name lookup - name too long"; |