LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to call access out side the chroot jail files from the apache (https://www.linuxquestions.org/questions/linux-security-4/how-to-call-access-out-side-the-chroot-jail-files-from-the-apache-799604/)

swamyvnvs 04-02-2010 10:55 AM

how to call access out side the chroot jail files from the apache
 
Hai friends

I have one requirement i.e I want to call the java file from the php function using shell_exec command , i am using the chroot jail concept , if i using this command i am getting the empty file because java enviroment is outside the chroot jail,so how to access the the files those are out side the chroot jail

Please tell to me if any one know.

Thanks and Regards

swamyvnvs

rweaver 04-02-2010 10:59 AM

Build the java environment inside the chroot. Giving a way outside the jail would completely defeat the purpose of it. If your java is in stalled to say /opt/java and your chroot is /var/chroot then you would need to have an install of java at /var/chroot/opt/java also.

swamyvnvs 04-03-2010 12:05 AM

how to call access out side the chroot jail files from the apache
 
Thanks rweaver,

Thank you for your replay, but if i installed java inside the chroot , may i get the chroot benfits,because my application need heavy security.Here not only java if i run php file also , i need to install the php inside the chroot, is there any other solution.

Thanks and Regards

swamy

rweaver 04-06-2010 11:23 AM

PHP would depend if you were using php-cli or the apache php module... the module can be utilized even if loaded outside the chroot, the cli version (which someone people use so they can run php scripts as the user and such) would need installed.


All times are GMT -5. The time now is 01:58 PM.