[maemo-developers] sbox2 & maemo

From: Lauri Leukkunen lauri.leukkunen at nokia.com
Date: Tue Jul 31 13:11:27 EEST 2007
On 31/07/07 11:56 +0300, ext Marius Vollmer wrote:
> Also, both sbox1 and sbox2 redirect whole packages, not just binaries
> (if I understand sbox2 correctly).  E.g., when redirecting the "perl"
> command, the redirected-to perl will take its modules from the
> redirected-to prefix, not from the redirected-from prefix.

It's all per-file based, you could write the sb2 rules so that only
specific files are accessed from the host. It's all quite flexible.

> That way, all binaries can be replaced that are used a lot during
> compilation and are too slow to be emulated: /bin/sh, m4, awk, make,
> perl, gcc, binutils, but not much more.  Packages like autoconf,
> automake, libtool are never redirected since they are interpreted
> anyway.

You could implement this as a mapping mode for sb2, by simply doing
export SBOX_MAPPING_MODE=your_mode
you could switch to whatever you like. Just put your custom rules into
and you're all set.

You could take the current "emulate" mode as a template and start adding
to that your exceptions.

I'll add a command line switch for sb2 to support selecting the mapping

This way there's no need to chroot into anything.


More information about the maemo-developers mailing list