File: seccomp_syscall_test2.c

package info (click to toggle)
runc 1.3.3%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,136 kB
  • sloc: sh: 2,298; ansic: 1,125; makefile: 229
file content (12 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
#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);
}