Skip to content

Commit

Permalink
Use __NR_setns so that setns has the right syscall # in 32-bit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lantz committed Apr 10, 2013
1 parent 7c920ed commit 33c7e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mnexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 33c7e46

Please sign in to comment.