#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sched.h>
#include <sys/types.h>
#include <wait.h>

int main(void)
{
	while (1) {
		int pid = fork();
		if (!pid) {
			unshare(CLONE_NEWUSER);
			unshare(CLONE_NEWNET);
			exit(1);
		} else if (pid > 0)
			wait(NULL);
	}
	return 0;
}
