aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-12-25 11:08:55 +0000
committerMichał Górny <mgorny@gentoo.org>2020-05-31 09:38:13 +0200
commit0489a6a390259a43763784302343e93b05de46df (patch)
tree1d3c5652a2e7faf42f3840bed4a58c8832ff77cf /libsandbox/libsandbox.c
parentStop installing the icon and .desktop file (diff)
downloadsandbox-0489a6a390259a43763784302343e93b05de46df.tar.gz
sandbox-0489a6a390259a43763784302343e93b05de46df.tar.bz2
sandbox-0489a6a390259a43763784302343e93b05de46df.zip
libsandbox/libsandbox.c: add errno output for internal sandbox violations
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'libsandbox/libsandbox.c')
-rw-r--r--libsandbox/libsandbox.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c
index 77e9959..0ee92ae 100644
--- a/libsandbox/libsandbox.c
+++ b/libsandbox/libsandbox.c
@@ -971,8 +971,14 @@ 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: %s(%s)\n\tabs_path: %s\n\tres_path: %s\n",
- func, file, absolute_path, resolved_path);
+ sb_ebort("ISE: %s(%s)\n"
+ "\tabs_path: %s\n"
+ "\tres_path: %s\n"
+ "\terrno=%i: %s\n",
+ func, file,
+ absolute_path,
+ resolved_path,
+ errno, strerror(errno));
}
bool is_sandbox_on(void)