[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] chrootlaunch from inittab

From: DTakemori
Subject: Re: [Jailkit-users] chrootlaunch from inittab
Date: Fri, 20 Mar 2009 12:15:52 -1000

>From: Olivier Sessink
>Subject: Re: [Jailkit-users] chrootlaunch from inittab
>Date: Fri, 20 Mar 2009 19:51:22 +0100
>User-agent: Thunderbird (X11/20090105)
>> I am now suspecting that this is a problem in the perl script, not
>> jailkit.  The
>> script (I am not the author of it) is probably either using something in
>> root's environment that's not in inittab's or accessing something that's
>> not copied over into the jail.
>but if you run it from the shell (including jk_chrootlaunch) it works?

This is very strange.

These all work from the root command line.

1) jk_chrootlaunch -u foo -g foo -j /var/foojail -x /usr/local/bin/foo -- -c /usr/local/etc/foo.conf
2) jk_chrootlaunch -j /var/foojail -x /usr/local/bin/foo -- -c /usr/local/etc/foo.conf
3) chroot /var/foojail /usr/local/bin/foo -c /usr/local/etc/foo.conf
4) chroot /var/foojail /bin/bash
        /usr/local/bin/foo -c /usr/local/etc/foo.conf

But this fails:
N1:345:respawn:jk_chrootlaunch -u foo -g foo -j /var/foojail -x /usr/local/bin/foo -- -c /usr/local/etc/foo.conf

Dean Takemori
Systems Support Supervisor
TD Food Group

reply via email to

[Prev in Thread] Current Thread [Next in Thread]