[GE users] chroot in sge

Brooks Davis brooks at aero.org
Wed Jun 4 16:49:58 BST 2008


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

On Wed, Jun 04, 2008 at 08:20:21AM +0200, Andy Schwierskott wrote:
> Hi Dan,
> 
> >You could use a shepherd wrapper script.  The shepherd is started as root. 
> >Read about the shepherd_cmd attribute in sge_conf(5).
> 
> I think that hardly wouldn't work.
> 
> If the shepherd would run in a chroot()'ed environment other than
> <execd_spool_dir>/active_jobs/<job_id> it wouldn't not be able to write
> files there. If the shpeherd wrapper just copied the files and writes
> somewhere else the parent process (execd) couldn't not see and read the
> shepherd files.

I think that should be fairly easily overcome with loopback/null mounts.
The wrapper would have to have OS specfic knowledge, but that's probably
OK for most systems.

-- Brooks

> Andy
> 
> 
> 
> >
> >Daniel
> >
> >Gon?alo Borges wrote:
> >>Hi All,
> >>
> >>Does anyone has an idea of how to implement a chroot in SGE?
> >>I would like to perform a chroot in the execution machine according to 
> >>some SGE options provided by the user and before the job start to 
> >>execute... Epilog could do this if chroot could be done by any user. The 
> >>problem is that it can only be executed by root!
> >>
> >>Thanks for any suggestion...
> >>Cheers
> >>Goncalo
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> >>For additional commands, e-mail: users-help at gridengine.sunsource.net
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> >For additional commands, e-mail: users-help at gridengine.sunsource.net
> >
> >

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list