[lxc-devel] [lxc/lxc] edfb9a: factor out networking configuration code

GitHub noreply at github.com
Sun Sep 22 06:45:44 UTC 2013


  Branch: refs/heads/stable-0.7.4
  Home:   https://github.com/lxc/lxc
  Commit: edfb9a57cf23369aeece9d829bb2930dfd404abc
      https://github.com/lxc/lxc/commit/edfb9a57cf23369aeece9d829bb2930dfd404abc
  Author: Daniel Lezcano <daniel.lezcano at free.fr>
  Date:   2011-03-06 (Sun, 06 Mar 2011)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/network.c
    M src/lxc/network.h

  Log Message:
  -----------
  factor out networking configuration code

Change the name of the functions and factor some of them.

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: b693b38534f9046fcb3872033d953eb20c67e358
      https://github.com/lxc/lxc/commit/b693b38534f9046fcb3872033d953eb20c67e358
  Author: Daniel Lezcano <daniel.lezcano at free.fr>
  Date:   2011-03-06 (Sun, 06 Mar 2011)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/network.c
    M src/lxc/network.h

  Log Message:
  -----------
  rename physical device to the original name

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 525ff3a55575dd376f95f6d54b3521e481f1e3d7
      https://github.com/lxc/lxc/commit/525ff3a55575dd376f95f6d54b3521e481f1e3d7
  Author: Daniel Lezcano <daniel.lezcano at free.fr>
  Date:   2011-03-06 (Sun, 06 Mar 2011)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  lxc-0.7.4.1

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: c232d084125ee97ba3d22409bae9f1217e9dba9f
      https://github.com/lxc/lxc/commit/c232d084125ee97ba3d22409bae9f1217e9dba9f
  Author: Daniel Lezcano <dlezcano at fr.ibm.com>
  Date:   2011-03-14 (Mon, 14 Mar 2011)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  fix mount path

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 7be9485c5262f5c30c6c41abd94c4ba13eb0e58f
      https://github.com/lxc/lxc/commit/7be9485c5262f5c30c6c41abd94c4ba13eb0e58f
  Author: Michael Santos <michael.santos at gmail.com>
  Date:   2011-03-16 (Wed, 16 Mar 2011)

  Changed paths:
    M src/lxc/lxc_monitor.c

  Log Message:
  -----------
  Exit if allocation fails

Signed-off-by: Michael Santos <michael.santos at gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 4b85e81b3d6a9210de09c56224437099abab9eff
      https://github.com/lxc/lxc/commit/4b85e81b3d6a9210de09c56224437099abab9eff
  Author: Michael Santos <michael.santos at gmail.com>
  Date:   2011-03-16 (Wed, 16 Mar 2011)

  Changed paths:
    M src/lxc/monitor.c

  Log Message:
  -----------
  Ensure monitored container name is null terminated

regexec() expects a null terminated name.

Signed-off-by: Michael Santos <michael.santos at gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 326afe510cccb9406f0d1e3563d71aef91083b80
      https://github.com/lxc/lxc/commit/326afe510cccb9406f0d1e3563d71aef91083b80
  Author: Cedric Le Goater <clg at fr.ibm.com>
  Date:   2011-04-06 (Wed, 06 Apr 2011)

  Changed paths:
    M src/lxc/namespace.c

  Log Message:
  -----------
  lxc-attach: fix access permissions of /proc/$pid/ns

Signed-off-by: Cedric Le Goater <clg at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 434d05fc6a8f38c29606780fab9df4fa3706fc25
      https://github.com/lxc/lxc/commit/434d05fc6a8f38c29606780fab9df4fa3706fc25
  Author: Greg Kurz <gkurz at fr.ibm.com>
  Date:   2011-04-06 (Wed, 06 Apr 2011)

  Changed paths:
    M src/lxc/log.c

  Log Message:
  -----------
  lxc: default log appender on stderr

The default appender for logs is currently the file one: this
make macros from log.h unusable as long as lxc_log_init() hasn't
been called. This prevents errors from even being printed on
stderr in lxc_caps_init() for example.

Let's make stderr the default appender.

Signed-off-by: Greg Kurz <gkurz at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: c6a46e86d4befbed2b35cb7fb97053fe6da8c8ab
      https://github.com/lxc/lxc/commit/c6a46e86d4befbed2b35cb7fb97053fe6da8c8ab
  Author: Serge E. Hallyn <serge at hallyn.com>
  Date:   2011-05-06 (Fri, 06 May 2011)

  Changed paths:
    M templates/lxc-lucid.in
    M templates/lxc-maverick.in
    M templates/lxc-natty.in

  Log Message:
  -----------
  templates: don't put devpts in $confdir/container/fstab

src/lxc/conf.c will explicitly mount it anyway.  Furthermore, the fstab
entry, which is getting processed first, did not specify -o newinstance.
This can cause the host's devpts entry mount options to change, as in
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/607636.

I believe the lenny, fedora, and debian templates also will need an
update.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: ed57edc0ad52692272cab13e132bd58fc9635ea5
      https://github.com/lxc/lxc/commit/ed57edc0ad52692272cab13e132bd58fc9635ea5
  Author: Daniel Lezcano <daniel.lezcano at free.fr>
  Date:   2011-05-06 (Fri, 06 May 2011)

  Changed paths:
    M templates/lxc-debian.in
    M templates/lxc-fedora.in
    M templates/lxc-lenny.in

  Log Message:
  -----------
  templates: don't put devpts in $confdir/container/fstab

src/lxc/conf.c will explicitly mount it anyway.  Furthermore, the fstab
entry, which is getting processed first, did not specify -o newinstance.
This can cause the host's devpts entry mount options to change, as in
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/607636.

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: b3c7b19a0de4a7ba74e6d46a01dccbc75c9a3c20
      https://github.com/lxc/lxc/commit/b3c7b19a0de4a7ba74e6d46a01dccbc75c9a3c20
  Author: Cedric Le Goater <clg at fr.ibm.com>
  Date:   2011-05-06 (Fri, 06 May 2011)

  Changed paths:
    M src/lxc/conf.h

  Log Message:
  -----------
  lxc: fix bogus header file

The lxc/ prefix is missing in <start.h>. This breaks the inclusion
of the header file <lxc/conf.h> in external source code.

Signed-off-by: Cedric Le Goater <clg at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: c97ced65cd605a9358e80518592f0a0f49066645
      https://github.com/lxc/lxc/commit/c97ced65cd605a9358e80518592f0a0f49066645
  Author: Cedric Le Goater <clg at fr.ibm.com>
  Date:   2011-05-20 (Fri, 20 May 2011)

  Changed paths:
    M src/lxc/Makefile.am

  Log Message:
  -----------
  lxc: don't install setns.h

'setns.h' is not an lxc interface.

Also, a side effect of this declaration of 'setns.h' in the lxc header
files is to be distributed in the lxc tarball. This breaks the
lxc-attach command because the file is not automatically generated at
compile time.

Signed-off-by: Cedric Le Goater <clg at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 9781dae8cfd83362d29a94e39e84d85b892cad65
      https://github.com/lxc/lxc/commit/9781dae8cfd83362d29a94e39e84d85b892cad65
  Author: Daniel Lezcano <dlezcano at fr.ibm.com>
  Date:   2011-05-20 (Fri, 20 May 2011)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  Version 0.7.4.2

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 57d6d6718dab8913039cb5fba74771e36cdeb5df
      https://github.com/lxc/lxc/commit/57d6d6718dab8913039cb5fba74771e36cdeb5df
  Author: Sven Wegener <sven.wegener at stealer.net>
  Date:   2011-05-27 (Fri, 27 May 2011)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  Check for existing ptmx symlink

It's OK, if /dev/ptmx points to /dev/pts/ptmx via a symlink.

Signed-off-by: Sven Wegener <sven.wegener at stealer.net>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: 967b34569424d2ec7ae7f27e64b1ad9bb2ea124b
      https://github.com/lxc/lxc/commit/967b34569424d2ec7ae7f27e64b1ad9bb2ea124b
  Author: Daniel Lezcano <daniel.lezcano at free.fr>
  Date:   2011-06-02 (Thu, 02 Jun 2011)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  set close-on-exec flag on command socket

When we accept a connection, we have to set the close-on-exec flag,
otherwise that won't be possible to reboot a container through a
lxc-console command.

Reported-by: Katoh Yasufumi <karma at jazz.email.ne.jp>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


  Commit: ebdedce2f6df18b8ecbdc2c67977240aa42f7af8
      https://github.com/lxc/lxc/commit/ebdedce2f6df18b8ecbdc2c67977240aa42f7af8
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2011-06-25 (Sat, 25 Jun 2011)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  print netdev name, not link, after moving dev into netns

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>


Compare: https://github.com/lxc/lxc/compare/edfb9a57cf23^...ebdedce2f6df


More information about the lxc-devel mailing list