Program not being executed at all

2006-12-29 Thread Alejandro Pulver
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 output of 'ktrace' is the following (it just stops before running it): 82753 ktrace

Program receiving SIGSEGV after exit()

2006-12-29 Thread Alejandro Pulver
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 exit() again. I think it is a problem with the application itself, but I don't k

Re: 6.1-RELEASE / 6.2 Kernel Crash...

2006-12-29 Thread Jan Knepper
Robert Watson wrote: On Thu, 28 Dec 2006, Jan Knepper wrote: Sounds like a bug in the support for your ATA hardware, or your hardware is broken. The very least you'll need to do is to obtain a crashdump and debugging backtrace (see the developers handbook) and CC it to sos@ This is gettin

Re: 6.1-RELEASE / 6.2 Kernel Crash...

2006-12-29 Thread Robert Watson
On Thu, 28 Dec 2006, Jan Knepper wrote: Sounds like a bug in the support for your ATA hardware, or your hardware is broken. The very least you'll need to do is to obtain a crashdump and debugging backtrace (see the developers handbook) and CC it to sos@ This is getting funnier... I added: d

Re: Init.c, making it chroot

2006-12-29 Thread Erik Udo
That's nice. But NetBSDs init.c executes /etc/rc before calling chroot(), and that's what i'm looking for, and for a moment tried to implement, but i'm not very familiar with FreeBSD code :) For example that kenv() came to me as a suprise. I'll have to try to implement the NetBSD way where /et

Re: Init.c, making it chroot

2006-12-29 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Oliver Fromme <[EMAIL PROTECTED]> writes: : : Thanks for the new patch, I'll try it as soon as possible. : : However, that might not be before Tuesday or Wednesday : because of wedding anniversary, birthday and new year's eve : (yup, all on one weekend)

Re: Init.c, making it chroot

2006-12-29 Thread Oliver Fromme
Thanks for the new patch, I'll try it as soon as possible. However, that might not be before Tuesday or Wednesday because of wedding anniversary, birthday and new year's eve (yup, all on one weekend), and it might take a day or two until I'm sober again. ;-) Best regards Oliver -- Oliver F

Re: Init.c, making it chroot

2006-12-29 Thread Oliver Fromme
M. Warner Losh wrote: > BTW, here's a patch to test. Since FreeBSD has kenv(2), the patch is > actually very small. OK, I tried it. The patch applied cleanly to RELENG_6. The following line triggered a warning and caused the compilation to be aborted: > +kenv(KENV_GET, "init_chroot", in

Re: Init.c, making it chroot

2006-12-29 Thread Oliver Fromme
M. Warner Losh wrote: > Oliver Fromme <[EMAIL PROTECTED]> writes: > : Erik Udo wrote: > : > How can i make init chroot after executing /etc/rc, and executing > : > /etc/rc again in the chrooted enviroment? > : > > : > For this to work, i'd like to know at what point do i call chroot(),

Re: Init.c, making it chroot

2006-12-29 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Oliver Fromme <[EMAIL PROTECTED]> writes: : : M. Warner Losh wrote: : > BTW, here's a patch to test. Since FreeBSD has kenv(2), the patch is : > actually very small. : : OK, I tried it. The patch applied cleanly to RELENG_6. : The following line tri

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

2006-12-29 Thread Bill Moran
In response to Colin Percival <[EMAIL PROTECTED]>: > Bill Moran wrote: > > http://people.collaborativefusion.com/~wmoran/code/jailme.html > > > > Feedback is appreciated. > > Be very very careful. Both chroot(2) and jail(2) can only be called by > root, and for very good reasons. Unprivileged

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

2006-12-29 Thread Colin Percival
Bill Moran wrote: > http://people.collaborativefusion.com/~wmoran/code/jailme.html > > Feedback is appreciated. Be very very careful. Both chroot(2) and jail(2) can only be called by root, and for very good reasons. Unprivileged users can create hardlinks to files which they don't own, includin