using /dev/null in chrooted enviroment

Tzachi Tager tzachi_tager at yahoo.com
Tue Dec 27 06:49:42 PST 2005


Hi,
  I'm trying to create chrooted enviroment, i did the folllowing in the chrooted enviroment:
  mknode c null 0 24
  mknode c zero 0 25
  And then i did chroot and those files are under /dev, but when i wrote  a short program in C that tries to open /dev/null (within the chrooted  env.) i got:
  "/dev/null-operation is not supported"
  Any way i tried to open or use (i'm running "perl -pi -e ..." and it  said that: "Can't open perl script "-e": No such file or directory".  which brings me again to /dev/null) i get the same message  "/dev/null-operation is not supported".
  Only by doing mount of devfs it seems to work fine, but i prefer not to  do mount every time (because then i get that my chrooted enviroment  pathname is too long for FreeBSD)
  I'm not quite sure if this is a bug,  but i hope it is (sorry to say that). 
  
		
---------------------------------
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 


More information about the freebsd-bugs mailing list