[lxc-devel] [lxc/lxc] 3f6e5c: lxc-usernsexec: setgroups() similar to other place...

Stéphane Graber noreply at github.com
Thu Sep 17 17:11:39 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 3f6e5c831eebf46e4e755bbc1bfbf4c9e1fb0d91
      https://github.com/lxc/lxc/commit/3f6e5c831eebf46e4e755bbc1bfbf4c9e1fb0d91
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-09-17 (Thu, 17 Sep 2020)

  Changed paths:
    M src/lxc/cmd/lxc_usernsexec.c

  Log Message:
  -----------
  lxc-usernsexec: setgroups() similar to other places shouldn't fail on EPERM

FAIL: lxc-tests: lxc-test-usernsexec (1s)
---
as test-userns executing /tmp/autopkgtest.waGEXj/build.Hm3/src/src/tests/lxc-test-usernsexec
uid=1001 gid=1001 name=test-userns subuid=165536 subgid=165536 ver=1:4.0.4-0ubuntu3
lxc-utils=1:4.0.4-0ubuntu3 kver=5.8.0-19-generic
USERNSEXEC=lxc-usernsexec
nouidgid: PASS
myuidgid: FAIL - runtest failed 1
  $ lxc-usernsexec -mu:0:1001:1 -mg:0:1001:1 -- /tmp/autopkgtest.waGEXj/build.Hm3/src/src/tests/lxc-test-usernsexec inside f0
  lxc 20200914222824.562 ERROR    utils - utils.c:lxc_setgroups:1363 - Operation not permitted - Failed to setgroups()
  kid 73112 is gone 1
subuidgid: PASS
bothsets: PASS
mismatch: PASS
ERRORS: myuidgid
---

Reported-by: Seth Forshee <seth.forshee at canonical.com>
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: c37c7b91afae06c21ea50ba49d82487fda0de0b2
      https://github.com/lxc/lxc/commit/c37c7b91afae06c21ea50ba49d82487fda0de0b2
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2020-09-17 (Thu, 17 Sep 2020)

  Changed paths:
    M src/lxc/cmd/lxc_usernsexec.c

  Log Message:
  -----------
  Merge pull request #3540 from brauner/2020-09-17/fixes_2

lxc-usernsexec: setgroups() similar to other places shouldn't fail on…


Compare: https://github.com/lxc/lxc/compare/b324a255009f...c37c7b91afae


More information about the lxc-devel mailing list