summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/seccomp/gettid.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/linux/seccomp/gettid.cc')
-rw-r--r--sandbox/linux/seccomp/gettid.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp/gettid.cc b/sandbox/linux/seccomp/gettid.cc
new file mode 100644
index 0000000..5414510
--- /dev/null
+++ b/sandbox/linux/seccomp/gettid.cc
@@ -0,0 +1,11 @@
+#include "debug.h"
+#include "sandbox_impl.h"
+
+namespace playground {
+
+int Sandbox::sandbox_gettid() {
+ Debug::syscall(__NR_gettid, "Executing handler");
+ return tid();
+}
+
+} // namespace