summaryrefslogtreecommitdiff
path: root/src/sysdeps/trychroot.c
blob: 42d887293ef657f2915d0045fbc4f5434e3ea293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ISC license. */

#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE

#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif

#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif

#include <unistd.h>

int main (void)
{
  if (chroot("/") < 0) return 1 ;
  return 0 ;
}