On Oct 13, 2008, at 2:27 PM, ext michael wrote:
Hi all,
I done some work related to sbox2 and x86_64 host machine. I must do
some fixup in
the sb_exec.c.
This is the list of the problem:
- execute 32bit binary (HOST file, example gcc) in a 64 bit HOST
system
- change dynamic the LD_PRELOAD according to the binary format on
the HOST
We have been making a lot of experiments with execs, ld.so & related
things lately, including the ability to start the binary with a non-
standard ld.so (ld-linux.so) and selecting the value for
LD_LIBRARY_PATH on the fly.
There are still things to do; in other words, while there are already
many exec-related changes, I'm still working on sb_exec.c and
argvenvp.lua (these two files contain the exec-related parts of sb'2
preload library: the former will contain the "mechanics", like
detecting the binary type, while the latter is/will be responsible for
all changes to the arguments and/or environment - previously most of
the logic was implemented in C, but this has been changing)
The new enviroment work fine but there are a lot of open issue.
Open issue:
- rebase my work on the last git
I think that that is quite vital. Selecting the value for LD_PRELOAD
should be based on the exec policy logic that is present in the newest
versions.
You didn't tell what version you have been using, but unless it is
quite new, please take the latest version from git. Please read my
(long) comment about the exec algorithm from the beginning of
sb_exec.c, and familiarize with the exec policy system.. we have been
applying that approach for solving things like selecting the location
of the locale DB, etc, so I think that the same system could be
extended to select a proper value for LD_PRELOAD as well (the locale
DB selection is not yet ready to be published, but it won't take too
long..I hope)
Regards,
Lauri
_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel