diff options
author | Michael Scherer <misc@zarb.org> | 2014-10-11 04:13:43 -0400 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-10-11 12:04:47 +0200 |
commit | 5482192e5774f52f2af0665a3b58539295e9c0a4 (patch) | |
tree | 88c22ce9cd36c51751caff0692a21de435f31106 /src | |
parent | 547e849b722e597d70ba069e2cb8931317d66e00 (diff) |
Report aa_change_onexec error code
Since aa_change_onexec return the error code in errno, and return
-1, the current code do not give any useful information when
something fail. This make apparmor easier to debug, as seen on
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760526
Diffstat (limited to 'src')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 8b9bb27137..b165b33af0 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -1698,7 +1698,7 @@ static int exec_child(ExecCommand *command, err = aa_change_onexec(context->apparmor_profile); if (err < 0 && !context->apparmor_profile_ignore) { *error = EXIT_APPARMOR_PROFILE; - return err; + return -errno; } } #endif |