tests: test uid_wrapper_syscall_{valid,va} interaction using swrap_fake_uid_wrapper.so
[socket_wrapper.git] / tests / swrap_fake_uid_wrapper.h
diff --git a/tests/swrap_fake_uid_wrapper.h b/tests/swrap_fake_uid_wrapper.h
new file mode 100644 (file)
index 0000000..70ac1d0
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stdbool.h>
+
+/* simulate socket_wrapper hooks */
+#define __FAKE_UID_WRAPPER_SYSCALL_NO 123456789
+#define __FAKE_UID_WRAPPER_SYSCALL_RC 987654321
+bool uid_wrapper_syscall_valid(long int sysno);
+long int uid_wrapper_syscall_va(long int sysno, va_list va);