]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Support unprivileged ephemeral container using aufs
authorKATOH Yasufumi <karma@jazz.email.ne.jp>
Thu, 25 Jun 2015 09:14:04 +0000 (18:14 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 14 Aug 2015 17:23:09 +0000 (13:23 -0400)
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 <karma@jazz.email.ne.jp>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc-start-ephemeral.in

index d3cc437a6926e59d152108f1cc38c6dd313afcbb..0ab08d07a81e74de170b1e708783097aabbd510f 100644 (file)
@@ -117,12 +117,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."))
@@ -230,7 +224,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))