mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
c61f606254
https://github.com/opencontainers/runtime-spec/pull/1087 added support for defaultErrnoRet to the OCI runtime specs. If a defaultErrnoRet is specified, disable patching the generated libseccomp cBPF. Closes: https://github.com/opencontainers/runc/issues/2943 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
13 lines
212 B
C
13 lines
212 B
C
#include <unistd.h>
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
{
|
|
if (chdir("/") < 0 && errno == ENXIO)
|
|
exit(EXIT_SUCCESS);
|
|
fprintf(stderr, "got errno=%m\n");
|
|
exit(EXIT_FAILURE);
|
|
}
|