runc/libcontainer/integration
Michael Crosby 6bb653a6e8 Return proper exit code for exec errors
Exec erros from the exec() syscall in the container's init should be
treated as if the container ran but couldn't execute the process for the
user instead of returning a libcontainer error as if it was an issue in
the library.

Before specifying different commands like `/etc`, `asldfkjasdlfj`, or
`/alsdjfkasdlfj` would always return 1 on the command line with a
libcontainer specific error message.  Now they return the correct
message and exit status defined for unix processes.

Example:

```bash
root@deathstar:/containers/redis# runc start test
exec: "/asdlfkjasldkfj": file does not exist
root@deathstar:/containers/redis# echo $?
127
root@deathstar:/containers/redis# runc start test
exec: "asdlfkjasldkfj": executable file not found in $PATH
root@deathstar:/containers/redis# echo $?
127
root@deathstar:/containers/redis# runc start test
exec: "/etc": permission denied
root@deathstar:/containers/redis# echo $?
126
```

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-02-26 11:41:56 -08:00
..
checkpoint_test.go Make cwd required 2016-01-14 19:06:56 -05:00
doc.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
exec_test.go libcontainer: integration: fix flaky pids limit tests 2016-02-12 00:14:22 +11:00
execin_test.go Return proper exit code for exec errors 2016-02-26 11:41:56 -08:00
init_test.go Return proper exit code for exec errors 2016-02-26 11:41:56 -08:00
seccomp_test.go Make cwd required 2016-01-14 19:06:56 -05:00
template_test.go Handle memory swappiness as a pointer to handle default/unset case 2016-02-24 09:02:06 -06:00
utils_test.go Make cwd required 2016-01-14 19:06:56 -05:00