[lxc-devel] [lxc/lxc] d42304: lxc-start-ephemeral: Parse passwd directly

GitHub noreply at github.com
Mon Oct 5 13:38:33 UTC 2015


  Branch: refs/heads/stable-1.1
  Home:   https://github.com/lxc/lxc
  Commit: d42304806bdead1ce051cb14b0b84710e6e2e1ec
      https://github.com/lxc/lxc/commit/d42304806bdead1ce051cb14b0b84710e6e2e1ec
  Author: Colin Watson <cjwatson at ubuntu.com>
  Date:   2015-10-05 (Mon, 05 Oct 2015)

  Changed paths:
    M src/lxc/lxc-start-ephemeral.in

  Log Message:
  -----------
  lxc-start-ephemeral: Parse passwd directly

On Ubuntu 15.04, lxc-start-ephemeral's call to pwd.getpwnam always
fails.  While I haven't been able to prove it or track down an exact
cause, I strongly suspect that glibc does not guarantee that you can
call NSS functions after a context switch without re-execing.  (Running
"id root" in a subprocess from the same point works fine.)

It's safer to use getent to extract the relevant line from the passwd
file and parse it directly.

Signed-off-by: Colin Watson <cjwatson at ubuntu.com>


  Commit: 2d67ff7ab905a422840a095fce2d412e7802acc0
      https://github.com/lxc/lxc/commit/2d67ff7ab905a422840a095fce2d412e7802acc0
  Author: Bogdan Purcareata <bogdan.purcareata at freescale.com>
  Date:   2015-10-05 (Mon, 05 Oct 2015)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  seccomp: add aarch64 support

Enable aarch64 seccomp support for LXC containers running on ARM64
architectures. Tested with libseccomp 2.2.0 and the default seccomp
policy example files delivered with the LXC package.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata at freescale.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


  Commit: 9c106637e8ccbe5856dad9a6c1e6e229faf7b000
      https://github.com/lxc/lxc/commit/9c106637e8ccbe5856dad9a6c1e6e229faf7b000
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2015-10-05 (Mon, 05 Oct 2015)

  Changed paths:
    M src/tests/lxc-test-symlink

  Log Message:
  -----------
  lxc-test-symlink: add a test using absolute symlink

This would have caught the regression last night.

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


  Commit: 1167aae1466493abd7f456e246c0f81dcc75de39
      https://github.com/lxc/lxc/commit/1167aae1466493abd7f456e246c0f81dcc75de39
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2015-10-05 (Mon, 05 Oct 2015)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  lxc_mount_auto_mounts: fix weirdness

The default_mounts[i].destination is never NULL except in the last
'stop here' entry.  Coverity doesn't know about that and so is spewing
a warning.  In any case, let's add a more stringent check in case someone
accidentally adds a NULL there later.

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


  Commit: b7a1093e1ed790360bd122c6e8d38509de906196
      https://github.com/lxc/lxc/commit/b7a1093e1ed790360bd122c6e8d38509de906196
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2015-10-05 (Mon, 05 Oct 2015)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  Fix the type of i in lxc_mount_auto_mounts

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/dbcb844f62bc...b7a1093e1ed7


More information about the lxc-devel mailing list