[lxc-devel] [lxc/lxc] e0344c: lxc-test-usernsexec: If user is root, then create ...

TomP noreply at github.com
Thu Jun 4 14:54:04 UTC 2020


  Branch: refs/heads/stable-4.0
  Home:   https://github.com/lxc/lxc
  Commit: e0344cfa43b3ae96e2ce029de2819561fb9a6313
      https://github.com/lxc/lxc/commit/e0344cfa43b3ae96e2ce029de2819561fb9a6313
  Author: Scott Moser <smoser at brickies.net>
  Date:   2020-06-04 (Thu, 04 Jun 2020)

  Changed paths:
    M src/tests/lxc-test-usernsexec

  Log Message:
  -----------
  lxc-test-usernsexec: If user is root, then create and use non-root user.

Previously if the user was root, then the test would just skip
running (and exit 0).  The lxc test environment is run as root.
So, instead of never doing anything there, we create a user,
make sure it is in /etc/sub{ug}id and then execute the test as that
user.

If user is already non-root, then just execute the tests as before.

Signed-off-by: Scott Moser <smoser at brickies.net>


  Commit: 9d81b99a14cb95f649cdf39986f7bf74ef313f11
      https://github.com/lxc/lxc/commit/9d81b99a14cb95f649cdf39986f7bf74ef313f11
  Author: Thomas Parrott <thomas.parrott at canonical.com>
  Date:   2020-06-04 (Thu, 04 Jun 2020)

  Changed paths:
    M .gitignore

  Log Message:
  -----------
  .gitignore: Ignores COPYING file created by make

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>


Compare: https://github.com/lxc/lxc/compare/bfbd606e6f1c...9d81b99a14cb


More information about the lxc-devel mailing list