From: KATOH Yasufumi Date: Thu, 25 Jun 2015 09:14:04 +0000 (+0900) Subject: Support unprivileged ephemeral container using aufs X-Git-Tag: lxc-1.1.3~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58b46c0f1599a6590b388ed40fedc0cc7888371c;p=thirdparty%2Flxc.git Support unprivileged ephemeral container using aufs As the commit 31a882e, an unprivileged container can use aufs. This patch removes the check for unpriv aufs, and change the path of xino file as an unprivileged user can mount aufs. Signed-off-by: KATOH Yasufumi Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxc-start-ephemeral.in b/src/lxc/lxc-start-ephemeral.in index 7bf336e92..ed2dfd150 100644 --- a/src/lxc/lxc-start-ephemeral.in +++ b/src/lxc/lxc-start-ephemeral.in @@ -120,12 +120,6 @@ parser.add_argument("--version", action="version", version=lxc.version) args = parser.parse_args() -# Basic requirements check -## We only support privileged containers for now -if os.geteuid() != 0 and args.union_type != "overlayfs": - parser.error(_("Unprivileged containers may only use " - "overlayfs 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.")) @@ -269,7 +263,7 @@ LXC_NAME="%s" entry[0], entry[1])) elif args.union_type == "aufs": - xino_path = "%s/lxc/aufs.xino" % get_rundir() + xino_path = "/dev/shm/aufs.xino" if not os.path.exists(os.path.basename(xino_path)): os.makedirs(os.path.basename(xino_path))