aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sb_gdb: improve gdb integrationMike Frysinger2012-12-241-0/+2
| | | | | | | | | | | | | | | | Add a dedicated entry point for connecting gdb to make it easy to connect gdb at arbitrary points (ala printf style debugging). This also smooths a lot of the common steps when automatically launching gdb such as making sure the process is closer to the crash point when the user takes over control of gdb. Finally, switch to using clone rather than fork since the latter relies on the C lib's fork which implicitly can grab locks. If we're crashing in the middle of a func that already holds those locks, the fork call will hang indefinitely on us. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* require at least automake 1.12Mike Frysinger2012-11-231-2/+2
| | | | | | Keeps me from chasing down warnings that differ between 1.11 and 1.12. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add a configure option to control pch usageMike Frysinger2012-11-171-2/+10
| | | | | | | | | Mostly for testing purposes. This also tweaks the dependency to fix a warning when generating the headers.h.pch in subdirs when the toplevel headers.h.pch already exists. URL: http://bugs.gentoo.org/425524 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* require at least automake 1.11.6Mike Frysinger2012-11-171-1/+1
| | | | | | We use AM_PROG_AR which was added after 1.11.1 at some point. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: use process_vm_readv if availableMike Frysinger2012-08-121-0/+2
| | | | | | | Should speed up loading of strings from remote processes as we only have to do (usually) one syscall to extract the whole string in one shot. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-2.7Mike Frysinger2012-07-031-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: add x32 ABI supportv2.6Mike Frysinger2012-07-031-1/+1
| | | | | | | | | | | We can trace x32 when the host is x86_64 or x32, but x32 cannot trace x86_64 due to limitations in the kernel interface -- all pointers get truncated to 32bits. We'll have to add external ptrace helpers in the future to make this work, but for now, we'll just let x86_64 code run unchecked :(. URL: https://bugs.gentoo.org/394179 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* include stdint.h/inttypes.h tooMike Frysinger2012-07-031-0/+2
| | | | | | These contain useful defines which we sometimes want to leverage. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* precompile headers.h to speed up build slightlyMike Frysinger2012-07-031-1/+5
| | | | | | | Since all system headers are included by way of headers.h, we can pre-compile this to speed up the build up a bit. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: handle broken kernel headersMike Frysinger2012-06-231-0/+2
| | | | | | | | Sometimes the struct in asm/ptrace.h is too small for what the kernel actually writes. Check to see which struct is larger (the one that the kernel declares or the C library declares), and use that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* use m4_flatten to make multiline lists easier to handleMike Frysinger2012-06-231-95/+95
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* update ax_*.m4 files from upstreamMike Frysinger2012-06-231-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: catch mktemp related funcsMike Frysinger2011-07-041-0/+9
| | | | | | URL: http://bugs.gentoo.org/374059 Reported-by: Nick Bowler <nbowler@draconx.ca> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-2.6Mike Frysinger2011-02-141-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make the libdl/dlopen/dlvsym tests more autoconfyv2.5Diego Elio Pettenò2011-02-141-19/+2
| | | | | | | | | Instead of testing manually for libdl and then libc for dlopen, just use AC_SEARCH_LIBS (and then AC_CHECK_FUNCS to check for dlvsym). The code is much nicer now. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* use libtool 2.2 macro and avoid dirty hacksDiego Elio Pettenò2011-02-141-8/+1
| | | | | | | | | Since we're already depending on a not-yet-released automake version, we may as well depend on the already-released libtool 2.2. This way we can avoid the dirty trick of undefining the macros to check for CXX and F77. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* improve quote parsing for SANDBOX_CONFIGURE_OPTSMike Frysinger2010-12-311-2/+8
| | | | | | Only strip quotes from arguments which lack spaces in them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-2.5Mike Frysinger2010-11-241-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-2.4Mike Frysinger2010-08-181-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* give src/sandbox.sh its own AC_CONFIG_FILESMike Frysinger2010-08-151-4/+1
| | | | | | | | This should avoid unnecessary chmods when regenerating files other than src/sandbox.sh which can sometimes lead to ugly warnings/errors when mucking about the source tree after ./configure. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* move from lzma to xzMike Frysinger2010-08-151-2/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tweak gnu linker check for goldMike Frysinger2010-08-151-8/+8
| | | | | | URL: http://bugs.gentoo.org/291103 Reported-by: Franz Fellner <fellner@gmx.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* use default lzma compression levelMike Frysinger2009-10-281-1/+4
| | | | | | | | | The current tarball compresses the same with compression levels 6 - 9, so don't bother using highest level since it takes more memory. URL: http://bugs.gentoo.org/290765 Reported-by: Ben Kohler <bkohler@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-2.3Mike Frysinger2009-10-261-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-2.2Mike Frysinger2009-08-251-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix minor regression in config.status outputMike Frysinger2009-08-251-1/+2
| | | | | | | | The recent 00default tweak re-ordered the AC_CONFIG_FILES list but this can cause harmless warnings when running config.status and the related chmod. Make sure src/sandbox.sh is first in the list. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* use AM_SILENT_RULES() for nowMike Frysinger2009-08-251-0/+1
| | | | | | At least until AM_INIT_AUTOMAKE([silent-rules]) is fixed. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add -Wall to automake runs and fix falloutMike Frysinger2009-08-251-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix libc.so configure test for uClibc/hardened systemsMike Frysinger2009-08-251-2/+2
| | | | | | | | | | On uClibc hardened systems, a simple program will be linked against the ldso and its name is similar to the C library, so make the grep a little more specific. URL: http://bugs.gentoo.org/275725 Reported-by: Ed Wildgoose <gentoo@wildgooses.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* 00default: set default paths based on @prefix@Mike Frysinger2009-06-241-4/+5
| | | | | | | | | | | Rather than hardcode /usr, assume that the prefix sandbox is configured with is the same prefix that other packages in the system will be configured with. This isn't entirely correct, but covers all of the common and realistic use cases. URL: http://bugs.gentoo.org/275064 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Michael Haubenwallner <haubi@gentoo.org>
* bump to sandbox-2.1Mike Frysinger2009-06-041-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* require automake-1.11+Mike Frysinger2009-05-311-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* setup local sandbox.d for running tests to avoid /etc/sandbox.dMike Frysinger2009-04-261-0/+1
| | | | | | | Always use local sandbox.d copy to avoid random /etc/sandbox.d issues like it doesn't exist, or has permission problems, or anything else. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* clean up configure script a bit and log active envMike Frysinger2009-04-131-34/+27
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-2.0Mike Frysinger2009-04-091-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: add support for tracing Blackfin/PARISC systemsMike Frysinger2009-04-081-1/+24
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-1.9Mike Frysinger2009-04-051-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: force lock sanity across forksMike Frysinger2009-04-051-0/+7
| | | | | | | | | | | Classic example of forks being used in multithreaded applications and causing havoc with shared state (locks in this case). Make sure that threads grabbing the sandbox lock don't screw up threads that do a fork and then exec. URL: http://bugs.gentoo.org/263657 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Ryan Hope <rmh3093@gmail.com>
* use newer automake featuresMike Frysinger2009-04-051-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: tweak /proc/.../cmdline check for hardenedMike Frysinger2009-04-051-2/+3
| | | | | | | | | Some hardened systems disable /proc/#/ access when the process in question is not owned by the current user. URL: http://bugs.gentoo.org/264476 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Andreas Westin <forsaken@forsaken.se>
* libsandbox: enable tracing for multiple personalitiesMike Frysinger2009-04-051-0/+18
| | | | | | | | | Initial support for tracing non-default personalities. For example, tracing a 32bit binary from a 64bit environment. URL: http://bugs.gentoo.org/264399 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Patrick Lauer <patrick@gentoo.org>
* bump to sandbox-1.8Mike Frysinger2009-03-311-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: detect /proc featuresMike Frysinger2009-03-181-0/+16
| | | | | | Handle /proc differences (fd/cmdline/etc...) across systems. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: initial support for tracing of static binaries via ptrace()Mike Frysinger2009-03-181-0/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build with --no-undefined when availableMike Frysinger2009-03-181-0/+4
| | | | | | | Since libtool's -no-undefined is a nop on Linux/binutils systems, add the linker flag for disabling undefined symbols our self. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-1.7Mike Frysinger2009-03-121-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-1.6Mike Frysinger2009-03-111-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* improve configure argument recordingMike Frysinger2009-03-101-1/+2
| | | | | | | | Use ac_configure_args as autoconf sets that up for us rather than trying to record "$@" ourselves. The latter may be corrupted by config.site scripts. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump to sandbox-1.5Mike Frysinger2009-03-081-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: add symlink tests and unify codeMike Frysinger2009-03-081-0/+2
| | | | | | | Add test cases for symlink behavior and unify some of the test code to make adding more test cases even easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org>