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
81233155
Commit
81233155
authored
Dec 11, 2015
by
Li Qiu
Committed by
Stéphane Graber
Nov 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return immediately in save_phys_nics if not run as root
Physical nic is not instantiated in lxc_create_network Signed-off-by:
Li Qiu
<
li.qiu@nomovok.com
>
parent
91cbac9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
start.c
src/lxc/start.c
+4
-0
No files found.
src/lxc/start.c
View file @
81233155
...
...
@@ -781,7 +781,11 @@ out_warn_father:
static
int
save_phys_nics
(
struct
lxc_conf
*
conf
)
{
struct
lxc_list
*
iterator
;
int
am_root
=
(
getuid
()
==
0
);
if
(
!
am_root
)
return
0
;
lxc_list_for_each
(
iterator
,
&
conf
->
network
)
{
struct
lxc_netdev
*
netdev
=
iterator
->
elem
;
...
...
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