Josh Grosse wrote:
On Wed, 27 Aug 2008 14:54:06 +0200, Otto Moerbeek wrote
Likely /tmp is mounted nodev
I don't think so. I can replicate Leo's exact sequence when /tmp is mounted
dev. If it is mounted nodev, you get warning messages that there is no
controlling tty when you start the shell. With dev, you get no warning
message and the chrooted environment works as expected, except for the result
from tty(1).
# mkdir -p /tmp/root/var/run
# cp -p /var/run/dev.db /tmp/root/var/run
# chroot /tmp/root sh
# tty
/dev/ttyp0
found with ktrace(1)
Cheers,
Heinrich
--
Heinrich Rebehn
University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -
Phone : +49/421/218-4664
Fax : -3341