[lxc-devel] [lxc/lxc] 54b827: commands: simplify lxc_cmd()

GitHub noreply at github.com
Wed Jun 27 14:29:27 UTC 2018


  Branch: refs/heads/stable-3.0
  Home:   https://github.com/lxc/lxc
  Commit: 54b827e0b6dd4a94d626a025c9718088f46d06ca
      https://github.com/lxc/lxc/commit/54b827e0b6dd4a94d626a025c9718088f46d06ca
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: simplify lxc_cmd()

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


  Commit: e24528ae31c63d3ec725286a552c709286a2e018
      https://github.com/lxc/lxc/commit/e24528ae31c63d3ec725286a552c709286a2e018
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/monitor.c

  Log Message:
  -----------
  monitor: change exit() => _exit() system call in child process

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 160ef98f3db35d40c7e1d8649548f5a00a0c656b
      https://github.com/lxc/lxc/commit/160ef98f3db35d40c7e1d8649548f5a00a0c656b
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M lxc.spec.in

  Log Message:
  -----------
  move some comments in lxc.spec.in

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 2cdf1af2a9718205214d3477146899dddc29facd
      https://github.com/lxc/lxc/commit/2cdf1af2a9718205214d3477146899dddc29facd
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/log.h
    M src/lxc/lsm/apparmor.c
    M src/lxc/lsm/lsm.c
    M src/lxc/lsm/selinux.c
    M src/lxc/monitor.c
    M src/lxc/state.c
    M src/lxc/sync.c
    M src/lxc/terminal.c

  Log Message:
  -----------
  log: add lxc_log_strerror_r macro

Let's ensure that we always use the thread-safe strerror_r() function and add
an approriate macro.
Additionally, define SYS*() macros for all log levels. They will use the new
macro and ensure thread-safe retrieval of errno values.

Signed-off-by: 2xsec <dh48.jeong at samsung.com>
[christian.brauner at ubuntu.com: simplify lxc_log_strerror_r macro]
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 2631ae677b324963137f13ced19656c162fa5e20
      https://github.com/lxc/lxc/commit/2631ae677b324963137f13ced19656c162fa5e20
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/caps.c
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/commands.c
    M src/lxc/conf.c
    M src/lxc/monitor.c
    M src/lxc/network.c
    M src/lxc/seccomp.c
    M src/lxc/start.c
    M src/lxc/storage/btrfs.c
    M src/lxc/storage/overlay.c
    M src/lxc/terminal.c

  Log Message:
  -----------
  log: change WARN macro using strerror to SYSWARN

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 23253ca0e6471a517b6ac0c3bc5f973107a9529f
      https://github.com/lxc/lxc/commit/23253ca0e6471a517b6ac0c3bc5f973107a9529f
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/cmd/lxc_init.c
    M src/lxc/cmd/lxc_monitord.c
    M src/lxc/commands.c
    M src/lxc/conf.c
    M src/lxc/initutils.c
    M src/lxc/storage/overlay.c
    M src/lxc/storage/storage_utils.c
    M src/lxc/terminal.c
    M src/lxc/utils.c

  Log Message:
  -----------
  log: change DEBUG, INFO, TRACE, NOTICE macro using strerror to SYS* macro

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 17e5707e41b2226999560f1454b4a744b3a48dfa
      https://github.com/lxc/lxc/commit/17e5707e41b2226999560f1454b4a744b3a48dfa
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/cmd/lxc_monitord.c
    M src/lxc/lsm/lsm.c
    M src/lxc/monitor.c
    M src/lxc/storage/overlay.c

  Log Message:
  -----------
  log: remove strerror() from SYSERROR call

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 28f7180097ef8fb7553b51668e12f3e0cbf6ec66
      https://github.com/lxc/lxc/commit/28f7180097ef8fb7553b51668e12f3e0cbf6ec66
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/caps.c
    M src/lxc/cmd/lxc_init.c
    M src/lxc/cmd/lxc_monitord.c
    M src/lxc/commands.c
    M src/lxc/commands_utils.c
    M src/lxc/conf.c
    M src/lxc/confile.c
    M src/lxc/confile_utils.c
    M src/lxc/criu.c
    M src/lxc/log.c
    M src/lxc/lxccontainer.c
    M src/lxc/monitor.c
    M src/lxc/namespace.c
    M src/lxc/network.c
    M src/lxc/seccomp.c
    M src/lxc/start.c
    M src/lxc/storage/btrfs.c
    M src/lxc/sync.c
    M src/lxc/terminal.c
    M src/lxc/utils.c

  Log Message:
  -----------
  log: change ERROR macro using sterror to SYSERROR

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 40c2312d8e1e085998083887ec4bf8f4409d3ce0
      https://github.com/lxc/lxc/commit/40c2312d8e1e085998083887ec4bf8f4409d3ce0
  Author: duguhaotian <duguhaotian at gmail.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

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

  Log Message:
  -----------
  clear ONLCR flag for container pty

now container pty output log, use \r\n as a newline flag.
This is a windows type, so we need to change it. By clear
ONLCR can reach it.

Signed-off-by: duguhaotian <duguhaotian at gmail.com>


  Commit: 15b8bfe54d919fda75c5a741188a3a764c4f444c
      https://github.com/lxc/lxc/commit/15b8bfe54d919fda75c5a741188a3a764c4f444c
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/log.h

  Log Message:
  -----------
  log: account for Android's Bionic's strerror_r()

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


  Commit: e0de0714e7729dc24525d29862c4cb65a631eb66
      https://github.com/lxc/lxc/commit/e0de0714e7729dc24525d29862c4cb65a631eb66
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/tools/arguments.h
    M src/lxc/tools/lxc_attach.c
    M src/lxc/tools/lxc_start.c
    M src/lxc/tools/lxc_stop.c

  Log Message:
  -----------
  tools: fix quiet option is not working

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


  Commit: 58465a03436e1126fe4e6d7f348bebdc04493a42
      https://github.com/lxc/lxc/commit/58465a03436e1126fe4e6d7f348bebdc04493a42
  Author: 2xsec <dh48.jeong at samsung.com>
  Date:   2018-06-27 (Wed, 27 Jun 2018)

  Changed paths:
    M src/lxc/tools/lxc_cgroup.c
    M src/lxc/tools/lxc_freeze.c
    M src/lxc/tools/lxc_unfreeze.c
    M src/lxc/tools/lxc_wait.c

  Log Message:
  -----------
  tools: cgroup, freeze, unfreeze, wait: change fprintf => lxc_error

Signed-off-by: 2xsec <dh48.jeong at samsung.com>


Compare: https://github.com/lxc/lxc/compare/6f94c2d2b121...58465a03436e
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the lxc-devel mailing list