]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
create_run_template: tell the template what caller's uid was mapped to
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 1 Nov 2013 20:27:49 +0000 (15:27 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 6 Nov 2013 15:04:06 +0000 (09:04 -0600)
commit57d116ab501594c2e50ab45f1cf2fae48c5eab09
tree2be48940cae1b0cc63d793afe77c00d60a18c80a
parentb9d957c316c3827898b91cc69788d90be3260935
create_run_template: tell the template what caller's uid was mapped to

conf.c/conf.h: have replaced bool hostid_is_mapped() with int mapped_hostid()
   which returns the mapped uid for the caller's uid on the host, or -1 if
   none

create_run_template: pass caller's uid into template.

lxc-ubuntu-cloud:
1. accept --mapped-uid argument
2. don't write to devices cgroup - not allowed.
3. if running in userns, use $HOME/.cache
4. chown cached files to the uid to which our caller was
   mapped
5. ignore /dev when extracting rootfs in a userns

Changelog: nov 5: remove debugging INFO line.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/lxccontainer.c
templates/lxc-ubuntu-cloud.in