repo.or.cz
/
trinity.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
merge setuid variants
[trinity.git]
/
syscalls
/
setns.c
blob
492a6f08b8c9b84ca4c1827bdcafcef0443a162c
1
/*
2
* SYSCALL_DEFINE2(setns, int, fd, int, nstype)
3
*/
4
#include <sched.h>
5
#include
"sanitise.h"
6
7
struct
syscallentry syscall_setns
= {
8
.
name
=
"setns"
,
9
.
num_args
=
2
,
10
.
arg1name
=
"fd"
,
11
.
arg1type
=
ARG_FD
,
12
.
arg2name
=
"nstype"
,
13
.
arg2type
=
ARG_LIST
,
14
.
arg2list
= {
15
.
num
=
4
,
16
.
values
= {
0
,
CLONE_NEWIPC
,
CLONE_NEWNET
,
CLONE_NEWUTS
, },
17
},
18
.
flags
=
NEED_ALARM
,
19
};