[lxc-devel] [lxc/lxc] c073c1: lxc_user_nic changes

GitHub noreply at github.com
Tue Dec 17 16:36:09 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: c073c14723936edc6bd60dc8844036dc6d3c4c0c
      https://github.com/lxc/lxc/commit/c073c14723936edc6bd60dc8844036dc6d3c4c0c
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-12-17 (Tue, 17 Dec 2013)

  Changed paths:
    M src/lxc/lxc_user_nic.c

  Log Message:
  -----------
  lxc_user_nic changes

1. catch a case if allowed number of nics is 0 (as opposed to no entry),
which previously would have allowed the user to sneak in one entry.

2. return false, not true, if something went heywire with creating the
/sys/class/net/$nic path to open.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>




More information about the lxc-devel mailing list