aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libsandbox: handle broken kernel headersMike Frysinger2012-06-231-0/+11
| | | | | | | | 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>
* libsandbox: create more defines for gcc attributesMike Frysinger2012-06-231-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: mark internal fds with O_CLOEXECMike Frysinger2012-03-071-0/+4
| | | | | | We don't want to bleed these across forks/execs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: add likely/unlikely supportMike Frysinger2012-03-061-0/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: delay trace_regs #error until useMike Frysinger2011-07-081-1/+2
| | | | | | | Don't error out if we're missing trace_regs, but we don't ever actually use it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: add support for tracing Blackfin/PARISC systemsMike Frysinger2009-04-081-0/+8
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bump common macros up to localdecls.h so tests can use themMike Frysinger2009-03-091-0/+13
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libsandbox: handle symlinks properlyMike Frysinger2009-03-081-0/+1
| | | | | | | | | | | Make sure we handle edge cases that involve symlinks and functions that operate on symlinks. This includes newer style *at functions that can go between operating on symlinks and operating on the linked files, and on symlinks to files that live in explicitly denied paths. URL: http://bugs.gentoo.org/254914 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Mike Auty <ikelos@gentoo.org>
* add checks for signal() return typesMike Frysinger2009-02-181-0/+10
| | | | | | | | | Some systems use sighandler_t while others use sig_t. Add a configure check so that we can assume sighandler_t is always available. URL: http://bugs.gentoo.org/259507 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Javier Villavicencio <the_paya@gentoo.org>
* libsandbox: create hidden targets for most functionsMike Frysinger2009-02-181-0/+1
| | | | | | | | In case we want to access a standard function unwrapped, create hidden functions that do just that. This creates a standard for most functions of the form sb_unwrapped_foo(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* drop unused local GLIBC_MINOR defineMike Frysinger2009-02-171-2/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix environ checkMike Frysinger2009-02-171-1/+1
| | | | | | | | | AC_CHECK_DECL will always create the relevant define and only differ in the actual value (0 or 1). URL: http://bugs.gentoo.org/258365 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Javier Villavicencio <the_paya@gentoo.org>
* provide environ decl if system sucks and doesn't do it for usv1.3.6Mike Frysinger2009-02-091-0/+4
| | | | | | URL: http://bugs.gentoo.org/258365 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Dan Coats <admin@easyshellz.com>
* define AT_FDCWD for older systemsMike Frysinger2008-12-231-0/+7
| | | | | | | | If the system is not up-to-date with latest POSIX, then setup AT_FDCWD ourself so that things build. Considering how we actually use the value, this shouldn't cause any problems ... Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* handle MAP_ANON on *BSD systemsMike Frysinger2008-12-231-0/+4
| | | | | | | Some systems (like the BSDs) do not define MAP_ANONYMOUS but rather just MAP_ANON. So handle it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cleanup whitespace and comments -- no functional changesMike Frysinger2008-11-091-1/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* More changes to try and resolve OSes with generic getcwd() implementations.Martin Schlemmer2005-12-051-0/+8
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Also add weak symbols.Martin Schlemmer2005-12-051-0/+2
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Remove the SB_STATIC and including of getcwd.c, etc voodoo, as we new use aMartin Schlemmer2005-12-011-6/+0
| | | | | | | | symbol map, and all non-exported symbols are local. Cleanup getcwd.c, as the generic getcwd for older 2.4 kernels do not work properly anyhow, and just makes things slower. Some other warning fixes. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Fix non-versioned libc's to also prepend '__' to internal symbols by usingMartin Schlemmer2005-12-011-6/+11
| | | | | | strong aliases. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Use versioned symbols on supported libc's for functions we wrap, as well asMartin Schlemmer2005-11-301-4/+6
| | | | | | provide all versions of specific functions. Some syntax cleanups. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* Move dlvsym define. Add symbol_version macros.Martin Schlemmer2005-11-301-0/+10
| | | | Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
* dont define BROKEN_RTLD_NEXT in uClibcMike Frysinger2005-05-021-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make sure all functions used in libsandbox.c is declared static. DefineMartin Schlemmer2005-04-231-0/+6
| | | | | | | | | SB_STATIC in localdecls.h for this. Include sandbox_futils.c rather than linking with its object. Hopefully this will fix bug #90153. URL: http://bugs.gentoo.org/90153 Signed-off-by: Martin Schlemmer <azarah@gentoo.org> Reported-by: Alexandre Rostovtsev <tetromino@gmail.com>
* turn create-localdecls into semi-autotooledMike Frysinger2004-12-021-0/+43
Signed-off-by: Mike Frysinger <vapier@gentoo.org>