chiark / gitweb /
Report aa_change_onexec error code
authorMichael Scherer <misc@zarb.org>
Sat, 11 Oct 2014 08:13:43 +0000 (04:13 -0400)
committerTom Gundersen <teg@jklm.no>
Sat, 11 Oct 2014 10:04:47 +0000 (12:04 +0200)
commit5482192e5774f52f2af0665a3b58539295e9c0a4
tree88c22ce9cd36c51751caff0692a21de435f31106
parent547e849b722e597d70ba069e2cb8931317d66e00
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
src/core/execute.c