diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-10 07:18:24 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-10 07:18:24 -0500 |
commit | 334c79edd83377a09c138800c0a2fefaf9c7981f (patch) | |
tree | 4511f4a41338d8a59c302b10588c974aeffd5a46 /src/fnet/veth.c | |
parent | fixed --top (diff) | |
download | firejail-334c79edd83377a09c138800c0a2fefaf9c7981f.tar.gz firejail-334c79edd83377a09c138800c0a2fefaf9c7981f.tar.zst firejail-334c79edd83377a09c138800c0a2fefaf9c7981f.zip |
testing
Diffstat (limited to 'src/fnet/veth.c')
-rw-r--r-- | src/fnet/veth.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fnet/veth.c b/src/fnet/veth.c index d06bc9256..546fafcec 100644 --- a/src/fnet/veth.c +++ b/src/fnet/veth.c | |||
@@ -111,6 +111,8 @@ int net_create_veth(const char *dev, const char *nsdev, unsigned pid) { | |||
111 | if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) | 111 | if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) |
112 | exit(2); | 112 | exit(2); |
113 | 113 | ||
114 | rtnl_close(&rth); | ||
115 | |||
114 | return 0; | 116 | return 0; |
115 | } | 117 | } |
116 | 118 | ||
@@ -173,6 +175,8 @@ int net_create_macvlan(const char *dev, const char *parent, unsigned pid) { | |||
173 | if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) | 175 | if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) |
174 | exit(2); | 176 | exit(2); |
175 | 177 | ||
178 | rtnl_close(&rth); | ||
179 | |||
176 | return 0; | 180 | return 0; |
177 | } | 181 | } |
178 | 182 | ||
@@ -209,6 +213,8 @@ int net_move_interface(const char *dev, unsigned pid) { | |||
209 | if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) | 213 | if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) |
210 | exit(2); | 214 | exit(2); |
211 | 215 | ||
216 | rtnl_close(&rth); | ||
217 | |||
212 | return 0; | 218 | return 0; |
213 | } | 219 | } |
214 | 220 | ||