Re: tomcat5 using jsvc in a chroot jail

2004-09-03 Thread John Villar
That, and dump strace's output to a file so you can grep for other occurences of .hotspot_compiler... Maybe it's failing to create a file somewhere. This file is not referenced anywhere else in the strace. It seems to me that the .hotspot_compiler is referencing to javac, try (and i'm

tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Skyler . Bingham
I am trying to configure tomcat 5.0.27 to run using jsvc in a chroot jail. I have gotten this configuration to work on rh7.2, but am having problems on rh9. Tomcat works fine using jsvc out of the chroot, but when trying to start it in the chroot, jsvc loads without an error (according to

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread QM
On Thu, Sep 02, 2004 at 02:42:07PM -0700, [EMAIL PROTECTED] wrote: : I am trying to configure tomcat 5.0.27 to run using jsvc in a chroot jail. : I have gotten this configuration to work on rh7.2, but am having problems : on rh9. Tomcat works fine using jsvc out of the chroot, but when trying to

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Skyler . Bingham
Does a standalone Java program run inside the jail? Yes, jsvc and tomcat as well as the entire JDK reside within the chroot jail. Also, did you copy needed system libraries from the old rh7.2 box or from the /usr/lib of the new rh9 machine? Yes, I have copied all libraries I could find that

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Michael Schuerig
On Thursday 02 September 2004 23:42, [EMAIL PROTECTED] wrote: I am trying to configure tomcat 5.0.27 to run using jsvc in a chroot jail. I found these two publications helpful Jason Brittain, Ian F. Darwin Tomcat: The Definitive Guide Chapter 6: Tomcat Security

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Skyler . Bingham
There are several tools, such as jailer, jailtool, and makejail. Actually, I have read both of those documents They helped me setup tomcat in a chroot in rh7.2 (in which I also use jsvc). I have not tried to use the chroot jail tools though. Perhaps those will make things a little easier.

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread QM
On Thu, Sep 02, 2004 at 03:05:23PM -0700, [EMAIL PROTECTED] wrote: : Does a standalone Java program run inside the jail? : : Yes, jsvc and tomcat as well as the entire JDK reside within the chroot : jail. You misunderstood my question: can you get a standalone Java class to execute within the

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Skyler . Bingham
You misunderstood my question: can you get a standalone Java class to execute within the chroot jail? Good call :) I tried running java -version inside the chroot and it hangs (ps shows [java defunct]). When I run an strace on it in the jail, it appears to hang after the following line:

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread QM
On Thu, Sep 02, 2004 at 03:57:36PM -0700, [EMAIL PROTECTED] wrote: : Good call :) chroots require that you start small, then build ;) : When I run an strace on it in the jail, it : appears to hang after the following line: : : open(.hotspot_compiler, O_RDONLY) = -1 ENOENT (No such file or

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Skyler . Bingham
The system's looking for a file named .hotspot_compiler in the current dir. The java command may internally change dirs, though, so you'll have to do some more work to figure out where current dir is. I forgot to mention that when java is run outside of the jail, it can't find this error

Re: tomcat5 using jsvc in a chroot jail

2004-09-02 Thread Joel
On Thu, 2 Sep 2004 16:41:34 Skyler.Bingham wrote ... I did a recursive cp of all files. What flags did you use besides -r ? -- Joel [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,