diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-12-25 11:08:55 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-31 09:38:13 +0200 |
commit | 0489a6a390259a43763784302343e93b05de46df (patch) | |
tree | 1d3c5652a2e7faf42f3840bed4a58c8832ff77cf /libsandbox/libsandbox.c | |
parent | Stop installing the icon and .desktop file (diff) | |
download | sandbox-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.c | 10 |
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) |