apparmor/binutils
Tyler Hicks 95286bb9e7 aa-exec: Clarify ENOENT and EACCES errors when changing profiles
The aa-exec tool was indicating, in an error message, that a profile
didn't exist in cases where aa_change_profile() failed with errno set to
ENOENT or EACCES. However, the EACCES error means that changing to the
target profile is not allowed. This patch fixes the error message in the
cause of EACCES:

 $ ./aa-exec -p dne -- true
 aa-exec: ERROR: profile 'dne' does not exist

 $ ./aa-exec -p /usr/sbin/tcpdump -- ./aa-exec -p unconfined -- true
 aa-exec: ERROR: insufficient permissions to change to the profile 'unconfined'

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
2018-05-31 17:37:55 +00:00
..
po translations: sync from launchpad translations 2018-04-15 06:54:44 -07:00
aa-enabled.pod binutils: update aa-enabled.pod to unify exit status styles 2017-07-31 17:44:07 +00:00
aa-exec.pod binutils: Remove --file option from aa-exec(8) man page 2015-12-17 19:20:10 -06:00
aa_enabled.c binutils: Add aa-enabled program to check AppArmor status 2015-12-16 18:35:09 -06:00
aa_exec.c aa-exec: Clarify ENOENT and EACCES errors when changing profiles 2018-05-31 17:37:55 +00:00
Makefile binutils, parser, utils: Exit from Makefile shell snippets 2017-12-04 23:28:10 +00:00