Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
065d331a
Unverified
Commit
065d331a
authored
Dec 02, 2020
by
Stéphane Graber
Committed by
GitHub
Dec 02, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3589 from tych0/fix-nonet-cleanup
network: fix LXC_NET_NONE cleanup
parents
55f7e4d6
04213960
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
network.c
src/lxc/network.c
+7
-0
No files found.
src/lxc/network.c
View file @
065d331a
...
...
@@ -3605,6 +3605,13 @@ int lxc_restore_phys_nics_to_netns(struct lxc_handler *handler)
char
ifname
[
IFNAMSIZ
];
struct
lxc_list
*
iterator
;
/*
* If we weren't asked to clone a new network namespace, there's
* nothing to restore.
*/
if
(
!
(
handler
->
ns_clone_flags
&
CLONE_NEWNET
))
return
0
;
/* We need CAP_NET_ADMIN in the parent namespace in order to setns() to
* the parent network namespace. We won't have this capability if we are
* unprivileged.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment