[lxc-devel] [lxc/lxc] 57d116: create_run_template: tell the template what caller...

GitHub noreply at github.com
Wed Nov 6 15:03:34 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 57d116ab501594c2e50ab45f1cf2fae48c5eab09
      https://github.com/lxc/lxc/commit/57d116ab501594c2e50ab45f1cf2fae48c5eab09
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/lxccontainer.c
    M templates/lxc-ubuntu-cloud.in

  Log Message:
  -----------
  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 at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: 4119204eef01e68c603f0f432b5ce653ea219eea
      https://github.com/lxc/lxc/commit/4119204eef01e68c603f0f432b5ce653ea219eea
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/lxc_user_nic.c

  Log Message:
  -----------
  lxc-user-nic: rename nic inside container to desired name

To do so we do a quick setns into the container's netns.  This
(unexpectedly) turns out cleaner than trying to rename it from
lxc_setup(), because we don't know the original nic name in
the container until we created it which we do in the parent
after the init has been cloned.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/b9d957c316c3...4119204eef01


More information about the lxc-devel mailing list