about summary refs log tree commit diff
path: root/src/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/pivot_root.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linux/pivot_root.c b/src/linux/pivot_root.c
new file mode 100644
index 00000000..17e70c91
--- /dev/null
+++ b/src/linux/pivot_root.c
@@ -0,0 +1,6 @@
+#include "syscall.h"
+
+int pivot_root(const char *new, const char *old)
+{
+	return syscall(SYS_pivot_root, new, old);
+}