| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
If the target passes a bad pointer to the kernel, then trying to extract
the data via ptrace will also throw an error. The tracing code should not
abort though as there's no valid address to check, and kernel itself will
return an error for us. Simply return and move on.
URL: https://bugs.gentoo.org/560396
Reported-by: Jeroen Roovers <jer@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
This new flag needs us to unpack & pass down the mode rather than
always sending in the value of 0.
URL: http://bugs.gentoo.org/529044
Reported-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
| |
We don't want to bleed these across forks/execs.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
URL: http://bugs.gentoo.org/258365
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reported-by: Dan Coats <admin@easyshellz.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
| |
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
|
|
|
|
| |
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
strong aliases.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
|
|
|
|
|
|
| |
provide all versions of specific functions. Some syntax cleanups.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
|
|
|
|
| |
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|