apparmor: exec should not be returning ENOENT when it denies
authorJohn Johansen <john.johansen@canonical.com>
Fri, 25 Jul 2014 11:02:03 +0000 (04:02 -0700)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:11 +0000 (14:04 +0200)
commit8d14bc992000791b414bd536fe3516303c5c039e
tree5655908d9974e866af2f41c1b6053e1dc01e25d9
parente41dd348186f9fbbf799a944697c64b01a03fb04
apparmor: exec should not be returning ENOENT when it denies

commit 9049a7922124d843a2cd26a02b1d00a17596ec0c upstream.

The current behavior is confusing as it causes exec failures to report
the executable is missing instead of identifying that apparmor
caused the failure.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
security/apparmor/domain.c