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

Christian Brauner noreply at github.com
Tue Jun 2 13:03:53 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 4c93c06e9f8ab7845479dfc02cb881a3a031c89b
      https://github.com/lxc/lxc/commit/4c93c06e9f8ab7845479dfc02cb881a3a031c89b
  Author: Scott Moser <smoser at brickies.net>
  Date:   2020-06-01 (Mon, 01 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: a65e1458d2c29c4de7e3e3cffece4c61aa9ac254
      https://github.com/lxc/lxc/commit/a65e1458d2c29c4de7e3e3cffece4c61aa9ac254
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

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

  Log Message:
  -----------
  Merge pull request #3432 from smoser/fix/lxc-usernsexec-test-do-create-user

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


Compare: https://github.com/lxc/lxc/compare/a3ab5b5d1037...a65e1458d2c2


More information about the lxc-devel mailing list