[systemd-devel] Chroot jail for service with /proc, etc. already mounted

Albert Strasheim fullung at gmail.com
Mon Apr 4 07:59:39 PDT 2011


Hello

On Mon, Apr 4, 2011 at 8:45 AM, Albert Strasheim <fullung at gmail.com> wrote:
> I was wondering if anyone had an example of a service unit that sets
> up a chroot jail with RootDirectory= but also mounts /proc, /sys and
> maybe a directory with some binaries and configuration inside it?

It seems I could write a program that runs under ExecStartPre= to
prepare the environment, if I set RootDirectoryStartOnly=true and
PermissionsStartOnly=true.

Any alternatives would be appreciated.

Regards

Albert


More information about the systemd-devel mailing list