From 33c7e46492e7335396d5b47873c4db3eb1ae86cc Mon Sep 17 00:00:00 2001
From: Bob Lantz <rlantz@cs.stanford.edu>
Date: Tue, 9 Apr 2013 19:36:02 -0700
Subject: [PATCH] Use __NR_setns so that setns has the right syscall # in
 32-bit mode fixes #127

---
 mnexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mnexec.c b/mnexec.c
index 42a9cf6e..bd7b1b1f 100644
--- a/mnexec.c
+++ b/mnexec.c
@@ -46,7 +46,7 @@ void usage(char *name)
 
 int setns(int fd, int nstype)
 {
-	return syscall(308, fd, nstype);
+	return syscall(__NR_setns, fd, nstype);
 }
 
 /* Validate alphanumeric path foo1/bar2/baz */
-- 
GitLab