[lxc-devel] [lxc/lxc] 55ae7e: audit: added capacity and reserve() to nlmsg

GitHub noreply at github.com
Mon Dec 1 19:02:11 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 55ae7edb18c503a4b869dd0089f25f03a05a6563
      https://github.com/lxc/lxc/commit/55ae7edb18c503a4b869dd0089f25f03a05a6563
  Author: Shuai Zhang <zs.broccoli at gmail.com>
  Date:   2014-12-01 (Mon, 01 Dec 2014)

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

  Log Message:
  -----------
  audit: added capacity and reserve() to nlmsg

There are now two (permitted) ways to add data to netlink message:

1. put_xxx()
2. call nlmsg_reserve() to get a pointer to newly reserved room within the
   original netlink message, then write or memcpy data to that area.

Both of them guarantee adding requested length data do not overflow the
pre-allocated message buffer by checking against its cap field first.

And there may be no need to access nlmsg_len outside nl module, because both
put_xxx() and nlmsg_reserve() have alread did that for us.

Signed-off-by: Shuai Zhang <zs.broccoli at gmail.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: 358f18beab0d82362381bb13a01d09db956323af
      https://github.com/lxc/lxc/commit/358f18beab0d82362381bb13a01d09db956323af
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-12-01 (Mon, 01 Dec 2014)

  Changed paths:
    M .gitignore

  Log Message:
  -----------
  Add missing files to ignore list

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Dwight Engen <dwight.engen at oracle.com>


  Commit: c464fd7e01ea5687dc3872d557213881cae9715e
      https://github.com/lxc/lxc/commit/c464fd7e01ea5687dc3872d557213881cae9715e
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-12-01 (Mon, 01 Dec 2014)

  Changed paths:
    M doc/lxc.container.conf.sgml.in

  Log Message:
  -----------
  tabs/spaces consistency

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


  Commit: 67c660d0aaff5f2854a55da936fe6cd82510494f
      https://github.com/lxc/lxc/commit/67c660d0aaff5f2854a55da936fe6cd82510494f
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-12-01 (Mon, 01 Dec 2014)

  Changed paths:
    M doc/lxc-start.sgml.in
    M doc/lxc.container.conf.sgml.in
    M doc/lxc.sgml.in
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/lxc_autostart.c
    M src/lxc/lxc_start.c
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  Define a new lxc.init_cmd config option

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Dwight Engen <dwight.engen at oracle.com>


  Commit: e71549fc7e1455d7bb8d7bdb26b9276093fd27c6
      https://github.com/lxc/lxc/commit/e71549fc7e1455d7bb8d7bdb26b9276093fd27c6
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-12-01 (Mon, 01 Dec 2014)

  Changed paths:
    M doc/Makefile.am

  Log Message:
  -----------
  doc: Always include the lxc-top manpage

Since it's no longer written in lua.

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


  Commit: de548c6055a6246804a8217e901c9272dbf699d4
      https://github.com/lxc/lxc/commit/de548c6055a6246804a8217e901c9272dbf699d4
  Author: Johannes Kastl <mail at ojkastl.de>
  Date:   2014-12-01 (Mon, 01 Dec 2014)

  Changed paths:
    M templates/lxc-opensuse.in

  Log Message:
  -----------
  lxc-opensuse: Disabling builds on openSUSE Tumbleweed, detection improved.

Signed-off-by: Johannes Kastl <git at ojkastl.de>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: 40d811614ce7b8fee716878f37d05a195b29ae8f
      https://github.com/lxc/lxc/commit/40d811614ce7b8fee716878f37d05a195b29ae8f
  Author: overlay fs <overlayfs at gmail.com>
  Date:   2014-12-01 (Mon, 01 Dec 2014)

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

  Log Message:
  -----------
  Issue #278: lxc-start-ephemeral: add --cdir option for cow-mounts

This is a copy of patch version 3 for issue #278 on the issue-tracker:

 - Allow multiple bind-mounts (--bdir) and multiple cow-mounts (--cdir).

 - Further fixes to permissions throughout lxc-start-ephemeral (annotated
   in the code).

Signed-off by: Oleg Freedholm <overlayfs at gmail.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/f38788b405e6...40d811614ce7


More information about the lxc-devel mailing list