-
Notifications
You must be signed in to change notification settings - Fork 1
/
setns.8
48 lines (48 loc) · 1.5 KB
/
setns.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.Dd September 29, 2015
.Dt SETNS 8
.Os
.\" ---------------------------------------------------------------------------
.Sh NAME
.Nm setns
.Nd execute setns syscall in arbitrary process
.\" ---------------------------------------------------------------------------
.Sh SYNOPSIS
.Nm
.Op Fl n Ao network namespace name or pid Ac
.Op Fl p Ao target pid Ac
.Op Fl d
.Pp
.\" ---------------------------------------------------------------------------
.Sh DESCRIPTION
.Nm setns
uses ptrace to force the target process to issue the setns syscall
and change its network namespace.
.\" ---------------------------------------------------------------------------
.Sh OPTIONS
The following options are supported by
.Nm :
.Bl -tag -width indent
.It Fl n Ao network namespace name or pid Ac
The target network namespace the process should join.
.It Fl p Ao target pid Ac
The target process. If not specified,
.Nm setns
will use
.Nm getppid(2).
.It Fl d
Drop CAP_SYS_ADMIN, avoid changing namespace again.
.El
.\" ---------------------------------------------------------------------------
.Sh EXAMPLES
Attach a network namespace:
.Dl $ setns -n public -p 1234
.\" ---------------------------------------------------------------------------
.Sh SEE ALSO
.Xr setns 2
.\" ---------------------------------------------------------------------------
.Sh AUTHORS
.An Arthur Gautier Aq [email protected]
.\" ---------------------------------------------------------------------------
.Sh BUGS
See the issue tracker at
.Em https://github.com/baloo/setns/issues