From: Stéphane Graber Date: Thu, 23 Jan 2014 01:33:21 +0000 (-0500) Subject: lxc-start-ephemeral: require root X-Git-Tag: lxc-1.0.0.beta3~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa0e610dc7c23ae9b5e540d62255ea4699ea73e;p=thirdparty%2Flxc.git lxc-start-ephemeral: require root Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxc-start-ephemeral.in b/src/lxc/lxc-start-ephemeral.in index 609cef0bc..d40ce4eaa 100644 --- a/src/lxc/lxc-start-ephemeral.in +++ b/src/lxc/lxc-start-ephemeral.in @@ -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."))