summaryrefslogtreecommitdiff
path: root/redir_scripts
AgeCommit message (Collapse)AuthorFilesLines
2007-05-09Add mapping exclusions for /usr/share/misc/config.*Lauri Leukkunen2-0/+8
These are autotools related. Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-05-09Add mapping exclusion rule for /optLauri Leukkunen1-0/+7
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-04-22Work on debian path mappingsLauri Leukkunen2-2/+16
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-04-22Catch symlinks referring to themselves and break the resulting loopLauri Leukkunen1-0/+4
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-04-12Add multiple mapping modes supportLauri Leukkunen5-53/+83
Mapping modes can be selected by exporting SBOX2_MAPMODE environment variable. Currently there are two, default and emulate. Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-04-12apt mapping ruleLauri Leukkunen1-0/+13
Patch from: Santtu Lakkala <inz@inz.fi> Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-03-12Prevent mapping leakage and add intltool supportLauri Leukkunen3-8/+43
With these changes SB2 will prevent accidental escaping from the target_root through symlinks. All paths are checked after mapping for symlinks, and they are fully resolved before returning. Maemo-mapper builds with these changes using "dpkg-buildpackage -rfakeroot -d". Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2007-02-12Root directory mapping exception and file magic file supportLauri Leukkunen2-0/+16
Root directory needs to be exempted from mapping to prevent confusion. Magic files from /usr/share/file/ need to be left unmapped for the "file" binary.
2007-02-11Assorted autotools mappings fixes & linker argument passingLauri Leukkunen3-20/+35
Create extra mapping chain and rules to get autotools and pkg-config work better. Still not sure if this is enough. Cross compiler argument passing in utils/sb2 is now done correctly and includes the -rpath-link flag which makes cross-compiler behave more like a non-cross-compiler.
2007-02-11Add libtool supportLauri Leukkunen2-23/+27
libtool can be installed for a scratchbox 2 target by doing: ./configure --prefix=$SBOX_TARGET_ROOT make make install
2007-01-17fakeroot/perl mappingsValtteri Rahkonen1-3/+13
* Modified perl mappig to nil, so that stuff under any directory containing perl would work. This is needed for debian tools because they have stuff under .*share and even under /etc/perl.*. * Added /usr/lib mapping to nil for sh, so that fakeroot would work.
2007-01-14* update copyrights and add license informationLauri Leukkunen3-1/+6
2007-01-14* change libsb2.c to not leak memory like a stabbed pigLauri Leukkunen6-228/+204
* rework the mappings code again * add locking for the mapping cache
2007-01-11* make sb2 --verbose output debug log to $buildroot/sb2_mapping.logLauri Leukkunen1-3/+21
2007-01-11* add --verbose switch to sb2 to enable debugging of the mappingLauri Leukkunen1-2/+6
rules
2007-01-10* rework lua scripts to work a bit like iptables chainsLauri Leukkunen3-93/+140
2007-01-08* add support for openat() family of functions, removes the need forLauri Leukkunen3-1/+1
nasty argv[] mapping for current versions of coreutils * do some preparations for future fuse support
2006-12-29* add argv[] mapping for ln and rm1.99.0.1Lauri Leukkunen1-0/+8
2006-12-29* add timestamp validation to cache logicLauri Leukkunen1-1/+1
* fix minor table indexing bug in main.lua
2006-12-27* working on host-gcc, almost thereLauri Leukkunen2-17/+23
2006-12-26* support installing files to */bin directoriesLauri Leukkunen1-0/+21
2006-12-26* add a mapping cache, speeds things up enormously, almost to SB1 levelLauri Leukkunen2-51/+47
* fix a lot of subtle mis-behaviour by returning the untouched path in cases where no mapping took place. * mkdtemp can't use mapping at the moment, this should be revisited in the future. * add a few more mappings to default.lua, mainly autotools related * main.lua fills in sane defaults for missing values in rules, makes the rules files way cleaner and less verbose to write.
2006-12-23* now we're able to build glibLauri Leukkunen2-9/+49
2006-12-22* cleanupLauri Leukkunen2-10/+5
* fix relative path handling in main.lua
2006-12-22* rework everything to get rid of chroot requirementLauri Leukkunen2-25/+85
2006-10-28* complete environment variable obedience campaignLauri Leukkunen1-0/+1
*
2006-11-03* handle home directory correctlyLauri Leukkunen1-2/+12
2006-11-03* sort the redir_scripts/parts files alphabeticallyLauri Leukkunen1-0/+1
2006-11-03* lua rules infrastructure functional, new rules go to redir_scripts/partsLauri Leukkunen3-35/+112
directory, from which they'll be imported at run time. Look at sample.lua and default.lua for examples
2006-11-03* fix binary name passing to lua scripts, done throughLauri Leukkunen1-2/+2
__SB2_BINARYNAME environment variable. Not very clean, but works. The usual /proc/*/exe symlink doesn't work for due to the way the binaries are executed using ld-linux.so.2
2006-08-09work on the lua rules systemLauri Leukkunen1-1/+49
2006-08-08* fix <asm/elf.h> issue on debian/sidLauri Leukkunen1-10/+12
* add a configure check for ELF_ARCH, support EM_386 and EM_X86_64 * fix segfault when redir_scripts/parts directory is missing
2006-08-07map /etc and stop trying to install chroot-uidLauri Leukkunen1-0/+1
2006-08-07realpath added and major rework of the path mapping code to make use ofLauri Leukkunen1-46/+38
it
2006-08-06general cleanup, remove hard coded paths and/or provide environmentLauri Leukkunen1-1/+4
variable configs
2006-08-06dynamic loader and readlink related fixes and developmentsLauri Leukkunen1-1/+8
2006-08-06better debug messages, don't translate /procLauri Leukkunen1-2/+4
2006-08-06install redir_scripts/main.lua tooLauri Leukkunen1-3/+3
2006-08-05first helloworld binary compiled!Lauri Leukkunen1-6/+68
2006-08-04initial darcs -> git transition commitLauri Leukkunen2-0/+49