realbasic-nug
[Top] [All Lists]

Re: Running REALbasic apps in a chroot environment

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Running REALbasic apps in a chroot environment
From: tjmac at tolisgroup dot com
Date: Sat, 31 Jul 2004 13:16:45 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <A44B0E86-E32B-11D8-83D5-003065966922 at balance-infosystems dot com>
Hi Keith,

Which platform - OS X or Linux?

Under Linux, you could achieve a chroot jail for your app in much the same 
manner as the LD_LIBRARY_PATH stuff that we were discussing.

Create the full jail hierarchy that you require for you app:

    /opt/MyApp
    /opt/MyApp/lib
    /opt/MyApp/etc
    /opt/MyApp/bin
    /opt/MyApp/any_other_directories_you_need

Then, in your startup script:

    #!/bin/bash
    chroot /opt/MyApp MyApp

This has the effect of setting /opt/MyApp as the virtual root level for this 
instance and executing your application.

You do need to make sure that all libraries and other bits that your app 
requires are copied into the /opt/MyApp hierarchy, because if you don't put it 
there, it won't be there :).

Of course, 'man chroot' will offer up much more detail than what I've typed.

This is probably good for OS X as well, but I've never tried it.

Tim
--
Tim Jones                         tjmac at tolisgroup dot com


Quoting Keith Hutchison <thinker at balance-infosystems dot com>:

> Is this possible?
> 
> Keith Hutchison
> Making Sense of Information
> Balance-InfoSystems.Com
> 
> http://balance-infosystems.com http://warmpond.com http://realopen.org
> Postgresql - FoxPro - Delphi - VBA - RealBasic
> 
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://www.realsoftware.com/listarchives/lists.html>
> 


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>