[tor-commits] [torsocks/master] Add debug-log for opaque syscall passthrough

jnewsome at torproject.org jnewsome at torproject.org
Thu Feb 25 18:49:22 UTC 2021


commit 800eb9eb417417129534db7a514d0f1f82773648
Author: Jim Newsome <jnewsome at torproject.org>
Date:   Mon Feb 8 14:38:52 2021 -0600

    Add debug-log for opaque syscall passthrough
---
 src/lib/syscall.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/syscall.c b/src/lib/syscall.c
index c941730..c92a74b 100644
--- a/src/lib/syscall.c
+++ b/src/lib/syscall.c
@@ -607,6 +607,8 @@ LIBC_SYSCALL_RET_TYPE tsocks_syscall(long int number, va_list args)
 		break;
 #endif /* __linux__ */
 	default:
+		DBG("[syscall] Unsupported __syscall number %ld. Passing through",
+				number);
 		ret = handle_passthrough(number, args);
 		break;
 	}





More information about the tor-commits mailing list