So, I have an application (fossil) that is started up as root by inetd. It chroots, drops privileges and so on, but the chroot needs access to /dev/null and /dev/urandom. I can start the app with --nojail, which skips the chroot and it will work fine, but it's designed to run in a chrooted environment that has access to these two special devices. How can I manually create them in the chroot? I saw linux instructions using mknod, but unlike linux the freebsd system doesn't appear to have standard major minor numbers for these:
Help
Code:
crw-rw-rw- 1 root wheel 0x2a Feb 8 21:44 /dev/null
crw-r--r-- 1 root wheel 0x4 Feb 8 21:41 /dev/random
lrwxr-xr-x 1 root wheel 6 Feb 8 21:41 /dev/urandom -> random
Help
