libminijail: pass-through errno should be negative

The errno values in the rest of libminijail use negative errno values. This
makes sure that the passed-through errno values are negative as well.

BUG=chromium-os:20903
TEST=Built for x86-alex and did a full image build & boot, ran okay as:
  sudo minijail0 -pu chronos /bin/ls
 and correctly failed (exit code 253) with:
  sudo minijail0 -S /dev/null /bin/ls

Change-Id: Ifac27468a21820ae342522c749c76f2045b630c3
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8394
Reviewed-by: Will Drewry <wad@chromium.org>
1 file changed