[lxc-devel] [lxc/lxc] c5316d: confile: sanity-check netdev->type before setting ...

GitHub noreply at github.com
Mon Jul 14 19:20:27 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: c5316d603069e161a874eda003e5e912fc3747f7
      https://github.com/lxc/lxc/commit/c5316d603069e161a874eda003e5e912fc3747f7
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-07-14 (Mon, 14 Jul 2014)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: sanity-check netdev->type before setting netdev->priv elements

The netdev->priv is shared for the netdev types.  A bad config file
could mix configuration for different types, resulting in a bad
netdev->priv when starting or even destroying a container.  So sanity
check the netdev->type before setting a netdev->priv element.

This should fix https://github.com/lxc/lxc/issues/254

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




More information about the lxc-devel mailing list