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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:17:15 +0000 (13:17 +0000)
commit3e21e8275607d7aedbc36168f589889f9a1ce08d
treeb69c3430bbdb580ce1f5b3c4418ac196070b897c
parent7d43cfdfd5f4e0cc36a5464f46bd2671e900365f
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