[lxc-devel] [lxc/lxc] 8dd6f8: utils: add lxc_drop_groups()

Christian Brauner noreply at github.com
Fri Feb 5 11:30:35 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 8dd6f81e70e77c228091020c663473af6838d0d2
      https://github.com/lxc/lxc/commit/8dd6f81e70e77c228091020c663473af6838d0d2
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

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

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

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


  Commit: 8917c3825a8fbd8a0f8a30696a37a74054d45d11
      https://github.com/lxc/lxc/commit/8917c3825a8fbd8a0f8a30696a37a74054d45d11
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cmd/lxc_usernsexec.c
    M src/lxc/conf.c
    M src/lxc/lxccontainer.c
    M src/lxc/start.c
    M src/lxc/storage/btrfs.c
    M src/lxc/storage/rsync.c
    M src/lxc/storage/storage_utils.c

  Log Message:
  -----------
  tree-wide: use lxc_drop_groups() instead of lxc_setgroups(0, NULL)

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


  Commit: 5a7f1dc6605804183024432e80d89c5b94ce3048
      https://github.com/lxc/lxc/commit/5a7f1dc6605804183024432e80d89c5b94ce3048
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

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

  Log Message:
  -----------
  utils: rework lxc_setgroups()

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


  Commit: bf31b3378f2feae908efb0ae094a3ec07dc69af6
      https://github.com/lxc/lxc/commit/bf31b3378f2feae908efb0ae094a3ec07dc69af6
  Author: Ruben Jenster <r.jenster at drachenfels.de>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

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

  Log Message:
  -----------
  confile: add lxc.init.groups to keep additional groups

Signed-off-by: Ruben Jenster <r.jenster at drachenfels.de>


  Commit: 8caac58373aea8dea63754b2ca2b52eb99660b75
      https://github.com/lxc/lxc/commit/8caac58373aea8dea63754b2ca2b52eb99660b75
  Author: Ruben Jenster <r.jenster at drachenfels.de>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/attach_options.h

  Log Message:
  -----------
  attach: Add groups option to keep additional group IDs.

Signed-off-by: Ruben Jenster <r.jenster at drachenfels.de>


  Commit: f41aa73b4e13e1cb6bb990f8e16cd040e116c847
      https://github.com/lxc/lxc/commit/f41aa73b4e13e1cb6bb990f8e16cd040e116c847
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach_options.h

  Log Message:
  -----------
  attach_options: initialize .groups

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


  Commit: f5072dcd5f8160c3c1b52be5479c736b592b0828
      https://github.com/lxc/lxc/commit/f5072dcd5f8160c3c1b52be5479c736b592b0828
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach_options.h

  Log Message:
  -----------
  attach_options: use standard C pointer syntax

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


  Commit: 9475d2b9b65726d9e4c6ccc038577354d77ffc15
      https://github.com/lxc/lxc/commit/9475d2b9b65726d9e4c6ccc038577354d77ffc15
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  attach: use brackets around flag check

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


  Commit: fb4dbb516cf5a6189a1ac41d609b90291bc9394d
      https://github.com/lxc/lxc/commit/fb4dbb516cf5a6189a1ac41d609b90291bc9394d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach_options.h

  Log Message:
  -----------
  attach_options: use size_t for lxc_groups_t

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


  Commit: 4822319f3182dd2e136be85e0147f97c52c66f8a
      https://github.com/lxc/lxc/commit/4822319f3182dd2e136be85e0147f97c52c66f8a
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/conf.h

  Log Message:
  -----------
  conf: use lxc_groups_t directly

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


  Commit: c71f64cbe01b27a16c8275128f3dc91cc0349604
      https://github.com/lxc/lxc/commit/c71f64cbe01b27a16c8275128f3dc91cc0349604
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

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

  Log Message:
  -----------
  confile: handle appending init groups

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


  Commit: 6f6c71cdcaa9338fe6eea87e3ff7dff25d5dfcd2
      https://github.com/lxc/lxc/commit/6f6c71cdcaa9338fe6eea87e3ff7dff25d5dfcd2
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/tests/Makefile.am
    M src/tests/get_item.c

  Log Message:
  -----------
  tests: improve lxc.init.groups tests

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


  Commit: 7fe8120ecabd6305af130daf8d37881389079601
      https://github.com/lxc/lxc/commit/7fe8120ecabd6305af130daf8d37881389079601
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: make garbage groups an error

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


  Commit: b5daeddc5afce1cad4915aef3e71fdfe0f428709
      https://github.com/lxc/lxc/commit/b5daeddc5afce1cad4915aef3e71fdfe0f428709
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/attach_options.h
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cmd/lxc_usernsexec.c
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/lxccontainer.c
    M src/lxc/start.c
    M src/lxc/storage/btrfs.c
    M src/lxc/storage/rsync.c
    M src/lxc/storage/storage_utils.c
    M src/lxc/utils.c
    M src/lxc/utils.h
    M src/tests/Makefile.am
    M src/tests/get_item.c

  Log Message:
  -----------
  Merge pull request #3657 from brauner/2021-02-05/init_groups

conf: implement lxc.init.groups


Compare: https://github.com/lxc/lxc/compare/d71e4764b73a...b5daeddc5afc


More information about the lxc-devel mailing list