[lxc-devel] [lxc/lxc] c1ff67: utils: add lxc_preserve_ns()

GitHub noreply at github.com
Tue Nov 22 05:00:35 UTC 2016


  Branch: refs/heads/stable-2.0
  Home:   https://github.com/lxc/lxc
  Commit: c1ff672f19227257becc434d0280b2920822dd72
      https://github.com/lxc/lxc/commit/c1ff672f19227257becc434d0280b2920822dd72
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  utils: add lxc_preserve_ns()

This allows to retrieve a file descriptor referring to a namespace.

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: e9f7729ea6ee7edc17e65638b28671b7d3fbdc64
      https://github.com/lxc/lxc/commit/e9f7729ea6ee7edc17e65638b28671b7d3fbdc64
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  start: add netnsfd to lxc_handler

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: e437b4ba2a78bcdc7e54a4dca3a488b06c0ad15d
      https://github.com/lxc/lxc/commit/e437b4ba2a78bcdc7e54a4dca3a488b06c0ad15d
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: use lxc_preserve_ns()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 377d011937aaf656b4e2b037c73ce72c66e2d21b
      https://github.com/lxc/lxc/commit/377d011937aaf656b4e2b037c73ce72c66e2d21b
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  attach: use lxc_preserve_ns()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 671c3c49fef3b4259f1f1b757467c85d095a59f1
      https://github.com/lxc/lxc/commit/671c3c49fef3b4259f1f1b757467c85d095a59f1
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/lxc_user_nic.c

  Log Message:
  -----------
  lxc_user_nic: use lxc_preserve_ns()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: ed8e8611813c85c5dea49291f3432a23ead1726d
      https://github.com/lxc/lxc/commit/ed8e8611813c85c5dea49291f3432a23ead1726d
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/start.c

  Log Message:
  -----------
  conf, start: improve log output

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: c7dc07216f6217df30ab7a3048ecf1326206195c
      https://github.com/lxc/lxc/commit/c7dc07216f6217df30ab7a3048ecf1326206195c
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: explicitly remove veth device from host

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 74ba41200257cf25dcee283a7c65dcd4f54e75da
      https://github.com/lxc/lxc/commit/74ba41200257cf25dcee283a7c65dcd4f54e75da
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf, start: be smarter when deleting networks

- So far we blindly called lxc_delete_network() to make sure that we deleted
  all network interfaces. This resulted in pointless netlink calls, especially
  when a container had multiple networks defined. Let's be smarter and have
  lxc_delete_network() return a boolean that indicates whether *all* configured
  networks have been deleted. If so, don't needlessly try to delete them again
  in start.c. This also decreases confusing error messages a user might see.

- When we receive -ENODEV from one of our lxc_netdev_delete_*() functions,
  let's assume that either the network device already got deleted or that it
  got moved to a different network namespace. Inform the user about this but do
  not report an error in this case.

- When we have explicitly deleted the host side of a veth pair let's
  immediately free(priv.veth_attr.pair) and NULL it, or
  memset(priv.veth_attr.pair, ...) the corresponding member so we don't
  needlessly try to destroy them again when we have to call
  lxc_delete_network() again in start.c

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 1ba79bfeb2345d2de9c2ef4f3201791dae862c48
      https://github.com/lxc/lxc/commit/1ba79bfeb2345d2de9c2ef4f3201791dae862c48
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/start.c
    M src/lxc/utils.c

  Log Message:
  -----------
  start, utils: improve preserve_ns()

- Allocating an error message that the caller must free seems pointless. We can
  just print the error message in preserve_ns() itself. This also allows us to
  avoid using the GNU extension asprintf().
- Improve lxc_preserve_ns(): By passing in NULL or "" as the second argument
  the function can now also be used to check whether namespaces are supported
  by the kernel.
- Use lxc_preserve_ns() in preserve_ns().

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: c6677625eebdaf07851f886e77bc07d99e30ef6e
      https://github.com/lxc/lxc/commit/c6677625eebdaf07851f886e77bc07d99e30ef6e
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/error.c
    M src/lxc/start.c

  Log Message:
  -----------
  start, error: improve log + non-functional changes

Improve log and comments in a bunch of places to make it easier for us on bug
reports.

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: a2f2695a6d440ff217e20d11364842b0df133d36
      https://github.com/lxc/lxc/commit/a2f2695a6d440ff217e20d11364842b0df133d36
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/namespace.c
    M src/lxc/namespace.h
    M src/lxc/start.c
    M src/lxc/start.h

  Log Message:
  -----------
  start, namespace: move ns_info to namespace.{c,h}

It's much more appropriate there and makes start.{c,h} cleaner and leaner.

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: f23504af5bc03169504d2639f52b0e485dd1d2ee
      https://github.com/lxc/lxc/commit/f23504af5bc03169504d2639f52b0e485dd1d2ee
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/utils.c

  Log Message:
  -----------
  attach, utils: bugfixes

- simply check /proc/self/ns
- improve SYSERROR() report
- use #define to prevent gcc & clang to use a VLA

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: b3677ba87fe58922790ef01882b47869ab5a0511
      https://github.com/lxc/lxc/commit/b3677ba87fe58922790ef01882b47869ab5a0511
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  attach: use ns_info[LXC_NS_MAX] struct

Using custom structs in attach.c risks getting out of sync with the commonly
used ns_info[LXC_NS_MAX] struct and thus attaching to wrong namespaces. Switch
to using ns_info[LXC_NS_MAX].

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 1d4a17332d800df99de48708a49a0b99cf629637
      https://github.com/lxc/lxc/commit/1d4a17332d800df99de48708a49a0b99cf629637
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/namespace.c
    M src/lxc/namespace.h

  Log Message:
  -----------
  namespace: always attach to user namespace first

Move the user namespace at the first position in the array so that we always
attach to it first when iterating over the struct and using setns() to switch
namespaces. This especially affects lxc_attach(): Suppose you cloned a new user
namespace and mount namespace as an unprivileged user on the host and want to
setns() to the mount namespace. This requires you to attach to the user
namespace first otherwise the kernel will fail this check:

    if (!ns_capable(mnt_ns->user_ns, CAP_SYS_ADMIN) ||
  !ns_capable(current_user_ns(), CAP_SYS_CHROOT) ||
  !ns_capable(current_user_ns(), CAP_SYS_ADMIN))
    	return -EPERM;

in

    linux/fs/namespace.c:mntns_install().

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 312953a70bc45ff7f23d8a6f8d3bf18f4bf500ca
      https://github.com/lxc/lxc/commit/312953a70bc45ff7f23d8a6f8d3bf18f4bf500ca
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgroup: improve isolcpus handling

- add more logging
- only write to cpuset.cpus if we really have to
- simplify cleanup on error and success

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 9af8795ffabf3e0d28b8e8d9f07a8435e7c49381
      https://github.com/lxc/lxc/commit/9af8795ffabf3e0d28b8e8d9f07a8435e7c49381
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgroups: handle non-existent isolcpus file

If the file "/sys/devices/system/cpu/isolated" doesn't exist, we can't just
simply bail. We still need to check whether we need to copy the parents cpu
settings.

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: d7cfb1de30bde9dff7700b979cd86dd88259d69b
      https://github.com/lxc/lxc/commit/d7cfb1de30bde9dff7700b979cd86dd88259d69b
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  utils: add lxc_safe_uint()

This function safely parses an unsigned integer. On success it returns 0 and
stores the unsigned integer in @converted. On error it returns a negative
errno.

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 3d5bac9261224a31dc8409759c78d8fe483289f2
      https://github.com/lxc/lxc/commit/3d5bac9261224a31dc8409759c78d8fe483289f2
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/tests/lxc-test-utils.c

  Log Message:
  -----------
  tests: add unit tests for lxc_safe_uint()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 6460fc550bf1eaa0e1e88aaed956c0ca4ea4b5af
      https://github.com/lxc/lxc/commit/6460fc550bf1eaa0e1e88aaed956c0ca4ea4b5af
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  utils: add lxc_safe_int()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: f41ee3e000549bb05df40e2f6340057e64a89936
      https://github.com/lxc/lxc/commit/f41ee3e000549bb05df40e2f6340057e64a89936
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/tests/lxc-test-utils.c

  Log Message:
  -----------
  tests: add unit tests for lxc_safe_int()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 104b6a3aef3bba0e84e3c6dfa674e74db82bce54
      https://github.com/lxc/lxc/commit/104b6a3aef3bba0e84e3c6dfa674e74db82bce54
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: get ip prefix via lxc_safe_uint()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 64b7bd703f0b986e915c392c35382e52eb158247
      https://github.com/lxc/lxc/commit/64b7bd703f0b986e915c392c35382e52eb158247
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: use lxc_safe_u/int in config_init_{u,g}id

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 773d583126720c542436bf8d6f81caab92d0c49f
      https://github.com/lxc/lxc/commit/773d583126720c542436bf8d6f81caab92d0c49f
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: use lxc_safe_uint() in config_pts()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: e68d7e3cb4f5a8885f59f39472eef257c16796f8
      https://github.com/lxc/lxc/commit/e68d7e3cb4f5a8885f59f39472eef257c16796f8
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: use lxc_safe_u/int() in config_start()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: db934c4a558effc33941d9ea6553bcb8c5e22c61
      https://github.com/lxc/lxc/commit/db934c4a558effc33941d9ea6553bcb8c5e22c61
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: use lxc_safe_uint() in config_monitor()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 99e746b984876205a67c15e405ee1545a04358a7
      https://github.com/lxc/lxc/commit/99e746b984876205a67c15e405ee1545a04358a7
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: use lxc_safe_uint() in config_tty()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 1b2f6ef94a5d169929cc3c96b566cab0e14c4521
      https://github.com/lxc/lxc/commit/1b2f6ef94a5d169929cc3c96b566cab0e14c4521
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: use lxc_safe_uint() in config_kmsg()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: e245c633daaf8199f0a088442588276afcfaeea2
      https://github.com/lxc/lxc/commit/e245c633daaf8199f0a088442588276afcfaeea2
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: avoid atoi in config_lsm_aa_incomplete()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 856a5733dcd6fdf10f935773f7a6ca78a492f802
      https://github.com/lxc/lxc/commit/856a5733dcd6fdf10f935773f7a6ca78a492f802
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: use lxc_safe_uint() in config_autodev()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 16ba55ae07c3d2e1b9a41825f2191373af9eb23b
      https://github.com/lxc/lxc/commit/16ba55ae07c3d2e1b9a41825f2191373af9eb23b
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

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

  Log Message:
  -----------
  conf/ile: avoid atoi() in config_ephemeral()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 14da4d1ffd20579078ee43940d1e077c033799f8
      https://github.com/lxc/lxc/commit/14da4d1ffd20579078ee43940d1e077c033799f8
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/utils.c

  Log Message:
  -----------
  utils: use lxc_safe_int()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 74dd0998de93b4a5bd5a28f0f3bd4fb416aec18f
      https://github.com/lxc/lxc/commit/74dd0998de93b4a5bd5a28f0f3bd4fb416aec18f
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/lxc_monitord.c

  Log Message:
  -----------
  lxc_monitord: use lxc_safe_int() && use exit()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 6b9550e2d8aa3696f5de7c29fc4dc6a44209e4bf
      https://github.com/lxc/lxc/commit/6b9550e2d8aa3696f5de7c29fc4dc6a44209e4bf
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  start: use lxc_safe_int()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: f36346a8b9b8198ad93a4e50ddae5177495c413a
      https://github.com/lxc/lxc/commit/f36346a8b9b8198ad93a4e50ddae5177495c413a
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: use lxc_safe_{u}int()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: dc1e435f2e2d31b895b413b592b3f42f6b0ef120
      https://github.com/lxc/lxc/commit/dc1e435f2e2d31b895b413b592b3f42f6b0ef120
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/tools/lxc_execute.c

  Log Message:
  -----------
  tools/lxc_execute: use lxc_safe_uint()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: c453697f94df967a19dfccd85bfe8d7650b0b987
      https://github.com/lxc/lxc/commit/c453697f94df967a19dfccd85bfe8d7650b0b987
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/tools/lxc_stop.c

  Log Message:
  -----------
  tools/lxc_stop: use lxc_safe_uint()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 0f44398bd67bfc5c6e7a1ec0493c10ce33517d98
      https://github.com/lxc/lxc/commit/0f44398bd67bfc5c6e7a1ec0493c10ce33517d98
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  utils: add lxc_safe_long()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 45cf2817685c102421f14149334eea4331219260
      https://github.com/lxc/lxc/commit/45cf2817685c102421f14149334eea4331219260
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/tests/lxc-test-utils.c

  Log Message:
  -----------
  tests: add unit tests for lxc_safe_long()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 9dfa6e193a2fd40d909f175c1675b70b793a158d
      https://github.com/lxc/lxc/commit/9dfa6e193a2fd40d909f175c1675b70b793a158d
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/tools/lxc_stop.c

  Log Message:
  -----------
  tools/lxc_stop: use lxc_safe_long()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 0dd2eef277f01330084f272785b78ac2af8be22d
      https://github.com/lxc/lxc/commit/0dd2eef277f01330084f272785b78ac2af8be22d
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/tools/lxc_top.c

  Log Message:
  -----------
  tools/lxc_top: use lxc_safe_int()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 3b56f0327b79afda95ec6441d3fb77053cb5dfc8
      https://github.com/lxc/lxc/commit/3b56f0327b79afda95ec6441d3fb77053cb5dfc8
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/tools/lxc_ls.c

  Log Message:
  -----------
  tools/lxc_ls: use lxc_safe_uint()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 4efa4bb965dc5547b7e8418d0f72eee6ac5ae966
      https://github.com/lxc/lxc/commit/4efa4bb965dc5547b7e8418d0f72eee6ac5ae966
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/tools/lxc_autostart.c

  Log Message:
  -----------
  tools/lxc_autostart: use lxc_safe_{int,long}()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 89154b89106968cad1d4e286b734717e0513be83
      https://github.com/lxc/lxc/commit/89154b89106968cad1d4e286b734717e0513be83
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M src/lxc/arguments.h
    M src/lxc/tools/lxc_console.c

  Log Message:
  -----------
  tools/lxc_console: use lxc_safe_uint()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


Compare: https://github.com/lxc/lxc/compare/d3795ab5f030...89154b891069


More information about the lxc-devel mailing list