aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-29 05:03:13 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-29 05:03:13 -0400
commit9fabf8eb94d8866c4f039462d1bdd06cdb0e22eb (patch)
tree4aa10dc34e74587646f8013da703917bd46c1dbe
parentlibsandbox: use ptrace on apps that interpose their own allocator (diff)
downloadsandbox-9fabf8eb94d8866c4f039462d1bdd06cdb0e22eb.tar.gz
sandbox-9fabf8eb94d8866c4f039462d1bdd06cdb0e22eb.tar.bz2
sandbox-9fabf8eb94d8866c4f039462d1bdd06cdb0e22eb.zip
libsandbox: make check_syscall ISE a little more useful
Showing just the resolved paths isn't too helpful when they're both NULL. Also include the failing func & original file path. URL: https://bugs.gentoo.org/553092 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libsandbox/libsandbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c
index 7555862..cbe1aa1 100644
--- a/libsandbox/libsandbox.c
+++ b/libsandbox/libsandbox.c
@@ -985,8 +985,8 @@ static int check_syscall(sbcontext_t *sbcontext, int sb_nr, const char *func,
return 2;
/* If we get here, something bad happened */
- sb_ebort("ISE:\n\tabs_path: %s\n\tres_path: %s\n",
- absolute_path, resolved_path);
+ sb_ebort("ISE: %s(%s)\n\tabs_path: %s\n\tres_path: %s\n",
+ func, file, absolute_path, resolved_path);
}
bool is_sandbox_on(void)