mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 11:20:59 +00:00
lxc-start-ephemeral: require root
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
bba1fbe695
commit
ffa0e610dc
@ -104,6 +104,10 @@ parser.add_argument("command", metavar='CMD', type=str, nargs="*",
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Basic requirements check
|
# 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
|
## Check that -d and CMD aren't used at the same time
|
||||||
if args.command and args.daemon:
|
if args.command and args.daemon:
|
||||||
parser.error(_("You can't use -d and a command at the same time."))
|
parser.error(_("You can't use -d and a command at the same time."))
|
||||||
|
Loading…
Reference in New Issue
Block a user