Re: Systrace on chroot, Segmentation fault

2005-09-27 Thread Otto Moerbeek
On Tue, 27 Sep 2005, Joost Tr wrote:

 Is it possible to run systrace on chroot? I get a segmentation fault.
 On OpenBSD 3.8-current (GENERIC), Sep 23 2005, i386.
 
 $ su
 # chroot -u root /  /bin/sh
 # exit
 This works.
 
 # systrace -a chroot -u root /  /bin/sh
 Segmentation fault (core dumped)
 This does not.

What does
# systrace -ae chroot -u root /  /bin/sh

say? 

Probably the program gets killed because your polciy denies everything.

-Otto



Re: Systrace on chroot, Segmentation fault

2005-09-27 Thread Okan Demirmen
On Tue 2005.09.27 at 12:22 +, Joost Tr wrote:
 Is it possible to run systrace on chroot? I get a segmentation fault.
 On OpenBSD 3.8-current (GENERIC), Sep 23 2005, i386.
 
 $ su
 # chroot -u root /  /bin/sh
 # exit
 This works.
 
 # systrace -a chroot -u root /  /bin/sh
 Segmentation fault (core dumped)
 This does not.

you probably want -A first, or at least some policy.



Re: Systrace on chroot, Segmentation fault

2005-09-27 Thread Joost Tr

Probably the program gets killed because your polciy denies everything.


Yep, it did deny everything :)


you probably want -A first, or at least some policy.


With -A instead of -a i get what i was aiming for.

thanks !




From: Okan Demirmen [EMAIL PROTECTED]
To: misc@openbsd.org
Subject: Re: Systrace on chroot, Segmentation fault
Date: Tue, 27 Sep 2005 10:33:40 -0401

On Tue 2005.09.27 at 12:22 +, Joost Tr wrote:
 Is it possible to run systrace on chroot? I get a segmentation fault.
 On OpenBSD 3.8-current (GENERIC), Sep 23 2005, i386.

 $ su
 # chroot -u root /  /bin/sh
 # exit
 This works.

 # systrace -a chroot -u root /  /bin/sh
 Segmentation fault (core dumped)
 This does not.

you probably want -A first, or at least some policy.