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
ffa0e610
Commit
ffa0e610
authored
Jan 22, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-start-ephemeral: require root
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
bba1fbe6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lxc-start-ephemeral.in
src/lxc/lxc-start-ephemeral.in
+4
-0
No files found.
src/lxc/lxc-start-ephemeral.in
View file @
ffa0e610
...
...
@@ -104,6 +104,10 @@ parser.add_argument("command", metavar='CMD', type=str, nargs="*",
args
=
parser
.
parse_args
()
# Basic requirements check
## We only support privileged containers for now
if
os
.
geteuid
()
!=
0
:
parser
.
error
(
_
(
"Unprivileged containers aren't supported at this time."
))
## Check that -d and CMD aren't used at the same time
if
args
.
command
and
args
.
daemon
:
parser
.
error
(
_
(
"You can't use -d and a command at the same time."
))
...
...
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