Need some help understanding a jail system call.

Dag-Erling Smørgrav des at
Wed Aug 26 14:34:11 UTC 2009

bert wiley <bertwiley at> writes:
> No where in the code do i ever see any access to the jail.h type systems
> calls

Because at that stage in the development process, the system calls in
<sys/jail.h> belong to the old implementation.

> so does the syscall(375, JAIL_CREATE, argv[1]); actually access the
> jail subsystem and create a jail?

It calls the new system call, which at that stage hasn't been added to
libc yet, because it would conflict with the existing system calls.

> Here is the link i used to find this code

You realize that this is eight years old, right?  And that the jail
infrastructure has been extensively modified since then, and is
currently being rewritten again?

Dag-Erling Smørgrav - des at

More information about the freebsd-hackers mailing list