This is similar to chroot(2), but takes a file descriptor instead
of path. A similar syscall exists in NetBSD. It is part of a larger
patch to make absolute pathnames usable in Capsicum mode, but should
be useful in other contexts too.
Sponsored by: DSbDInnovate UK