commit:     9fabf8eb94d8866c4f039462d1bdd06cdb0e22eb
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 09:03:13 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 09:03:13 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=9fabf8eb

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 <AT> gentoo.org>

 libsandbox/libsandbox.c | 4 ++--
 1 file 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)

Reply via email to