Re: Init.c, making it chroot

2006-12-30 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Doug Barton <[EMAIL PROTECTED]> writes: : Erik Udo wrote: : > That's nice. But NetBSDs init.c executes /etc/rc before calling : > chroot(), and that's what i'm looking for : : Sorry if I missed your rationale earlier, but could you perhaps : explain a bi

how to deal with const

2006-12-30 Thread perryh
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 strstr (#s added): 1: char * 2: strstr(s, find) 3: const char

Re: Init.c, making it chroot

2006-12-30 Thread Doug Barton
Erik Udo wrote: > That's nice. But NetBSDs init.c executes /etc/rc before calling > chroot(), and that's what i'm looking for Sorry if I missed your rationale earlier, but could you perhaps explain a bit more about why you want to do this? I ask because I'm generally interested in boot-time issues

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

2006-12-30 Thread Colin Percival
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 would need to already have root to create t

Re: problem with apache bench

2006-12-30 Thread Steve Hodgson
Bartosz Giza wrote: > Hi, > > from couple of days i am trying to figure out what is wrong with apache > bench. I want to test my remote site with it but all the time i got this > error message. > > % ab -c 10 -n 500 http://x/test.php > Test aborted after 10 failures > > apr_socket_connect(): Op

Re: problem with apache bench

2006-12-30 Thread Simon L. Nielsen
On 2006.12.30 21:10:50 +0100, Bartosz Giza wrote: > from couple of days i am trying to figure out what is wrong with apache > bench. I want to test my remote site with it but all the time i got this > error message. > > % ab -c 10 -n 500 http://x/test.php > Test aborted after 10 failures > >

Re: Program not being executed at all

2006-12-30 Thread Kostik Belousov
On Sat, Dec 30, 2006 at 06:12:01PM -0300, Alejandro Pulver wrote: > On Sat, 30 Dec 2006 16:31:03 +0200 > Kostik Belousov <[EMAIL PROTECTED]> wrote: > > [...] > > > > > Interestingly 'ldd' also crashes when examining it, outputting the > > > > > following (however 'ktrace' has more information): >

Re: Program not being executed at all

2006-12-30 Thread Alejandro Pulver
On Sat, 30 Dec 2006 16:31:03 +0200 Kostik Belousov <[EMAIL PROTECTED]> wrote: [...] > > > > Interestingly 'ldd' also crashes when examining it, outputting the > > > > following (however 'ktrace' has more information): > > > > > > > > /usr/local/bin/quake2max: > > > > /usr/local/bin/quake2max: sig

Re: MFS_IMAGE with a DEBUG kernel

2006-12-30 Thread John-Mark Gurney
Neelkanth Natu wrote this message on Tue, Dec 12, 2006 at 15:33 -0800: > Trying to stuff in an MFS_IMAGE into a debug kernel does not work in > -current. kern.post.mk tries > to put the MFS_IMAGE in ${KERNEL_KO} when building ${FULLKERNEL} - but > ${KERNEL_KO} has not been > created at that point

problem with apache bench

2006-12-30 Thread Bartosz Giza
Hi, from couple of days i am trying to figure out what is wrong with apache bench. I want to test my remote site with it but all the time i got this error message. % ab -c 10 -n 500 http://x/test.php Test aborted after 10 failures apr_socket_connect(): Operation already in progress (37) Tota

Re: Init.c, making it chroot

2006-12-30 Thread Robert Watson
On Sat, 30 Dec 2006, M. Warner Losh wrote: In message: <[EMAIL PROTECTED]> Robert Watson <[EMAIL PROTECTED]> writes: : Mounting a second devfs instance is undesirable for a number of : reasons, not least that you end up with an extra file system : floating around (although not reachab

Re: Init.c, making it chroot

2006-12-30 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Oliver Fromme <[EMAIL PROTECTED]> writes: : 1- Why does the kernel try to mount /dev at all? Why not : simply let init mount it in all cases, with ot without : init_chroot? Would make things simpler. There doesn't : seem to be a clear reas

Re: Init.c, making it chroot

2006-12-30 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Robert Watson <[EMAIL PROTECTED]> writes: : Mounting a second devfs instance is undesirable for a number of : reasons, not least that you end up with an extra file system : floating around (although not reachable via the name space). It's : certainly not

Re: Program not being executed at all

2006-12-30 Thread Kostik Belousov
On Sat, Dec 30, 2006 at 11:15:59AM -0300, Alejandro Pulver wrote: > On Sat, 30 Dec 2006 14:21:50 +0200 > Kostik Belousov <[EMAIL PROTECTED]> wrote: > > > On Sat, Dec 30, 2006 at 02:47:18AM -0300, Alejandro Pulver wrote: > > > Hello. > > > > > > I tried to update the port I maintain "games/quake2m

Re: Program not being executed at all

2006-12-30 Thread Alejandro Pulver
On Sat, 30 Dec 2006 14:21:50 +0200 Kostik Belousov <[EMAIL PROTECTED]> wrote: > On Sat, Dec 30, 2006 at 02:47:18AM -0300, Alejandro Pulver wrote: > > Hello. > > > > I tried to update the port I maintain "games/quake2max", a Quake II > > engine, but when I try to run the compiled executables, exce

Re: Program receiving SIGSEGV after exit()

2006-12-30 Thread Alejandro Pulver
On Sat, 30 Dec 2006 14:15:57 +0200 Kostik Belousov <[EMAIL PROTECTED]> wrote: > On Sat, Dec 30, 2006 at 03:10:35AM -0300, Alejandro Pulver wrote: > > Hello. > > > > The port "games/qudos" keeps running in a loop after exiting from the > > main menu. This is because after calling exit() the progra

Re: Program receiving SIGSEGV after exit()

2006-12-30 Thread Kostik Belousov
On Sat, Dec 30, 2006 at 03:10:35AM -0300, Alejandro Pulver wrote: > Hello. > > The port "games/qudos" keeps running in a loop after exiting from the > main menu. This is because after calling exit() the program receives a > SIGSEGV signal, and the signal handler, after intercepting it, calls > exi

Re: Init.c, making it chroot

2006-12-30 Thread Robert Watson
On Sat, 30 Dec 2006, Oliver Fromme wrote: In particular, there is no /dev, so I still get this one from the kernel: Lookup of /dev for devfs, error: 2 But then init and everything starts up fine, so it doesn't seem to cause any harm. That raises two questions: 1- Why does the kernel tr

Re: Program not being executed at all

2006-12-30 Thread Kostik Belousov
On Sat, Dec 30, 2006 at 02:47:18AM -0300, Alejandro Pulver wrote: > Hello. > > I tried to update the port I maintain "games/quake2max", a Quake II > engine, but when I try to run the compiled executables, except for > the dedicated server (quake2max-ded) they output "Abort" and quit. > > The outp

Re: Init.c, making it chroot

2006-12-30 Thread Oliver Fromme
M. Warner Losh wrote: > Oliver Fromme <[EMAIL PROTECTED]> writes: > : Thanks for the new patch, I'll try it as soon as possible. I got a few minutes and tested it. > I don't have the proper environment to easily test this > out, but I think what I sent will work... It does work indeed! Wit