how to stop the "automatic reboot"

2006-12-31 Thread perryh
Pressing a key after the "Automatic reboot in 15 seconds - press a key on the console to abort" message does not seem to prevent the reboot. What is the correct way of stopping it long enough to copy the other messages? ___ freebsd-hackers@freebsd.org ma

Re: how to deal with const

2006-12-31 Thread perryh
> If you need strstr(3) in your project is allready defined > in libkern. The implementation is identical, but using the > __DECONST macro. > > Take a look in /usr/src/sys/libkern/strstr.c for the function > definition and /usr/src/sys/geom/label/g_label.c for usage. > > The function prototy

Confusion in acpi_sleep_machdep().

2006-12-31 Thread Matthew Dillon
I'm trying to figure out how the acpi_sleep_machdep() code works and there are a couple of lines I just don't understand: pm = vmspace_pmap(p->p_vmspace); cr3 = rcr3(); #ifdef PAE load_cr3(vtophys(pm->pm_pdpt)); #else load_cr3(vtophys(pm->pm_pdir)); #endif

Re: Init.c, making it chroot

2006-12-31 Thread Robert Watson
On Sun, 31 Dec 2006, Tim Kientzle wrote: Robert Watson wrote: ... It used to be that only certain file systems could be used as a root file system, because only they knew how to bypass the lookup procedure to find their device node, short-circuiting to the in-kernel device list. So why are t

Re: Init.c, making it chroot

2006-12-31 Thread Tim Kientzle
Robert Watson wrote: ... It used to be that only certain file systems could be used as a root file system, because only they knew how to bypass the lookup procedure to find their device node, short-circuiting to the in-kernel device list. So why are the MD_ROOT and NFS_ROOT options still arou

Re: Modified version of jexec allows non-root access into jails

2006-12-31 Thread Robert Watson
On Sat, 30 Dec 2006, Colin Percival wrote: Bill Moran wrote: You also describe a scenerio where a user can create a jail of his own design and give himself root inside it, thus allowing him to use the setuid trick to get root on the host as well. The place this falls down is that the user w

Re: how to deal with const

2006-12-31 Thread Daniel Molina Wegener
On Sunday 31 December 2006 03:52, [EMAIL PROTECTED] wrote: > I'm working on a kernel project that needs strstr(3). > > It looks as if most of the str* functions in libkern are very > similar, if not identical, to their counterparts in > libc/string, but that approach does not seem to work for > str

Re: Init.c, making it chroot

2006-12-31 Thread Erik Udo
M. Warner Losh wrote: Oh! I see. Reading the actual code is instructive... Run /etc/rc, maybe chroot and run a different /etc/rc... That makes a lot more sense... Warner Yes, it allows for me to create the new chroot, becouse in a livecd it's a disk image. Maybe the /etc/rc is a bit misl