[lxc-devel] [lxc/lxc] df9bf8: caps: check uid and euid

Stéphane Graber noreply at github.com
Sat Feb 9 21:57:04 UTC 2019


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

  Changed paths:
    M src/lxc/caps.c

  Log Message:
  -----------
  caps: check uid and euid

When we are running inside of a user namespace getuid() will return a
non-zero uid. So let's check euid as well to make sure we correctly drop
capabilities

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


  Commit: 3e0aac16db5f7ff310316a3a2ea000503a31b2fb
      https://github.com/lxc/lxc/commit/3e0aac16db5f7ff310316a3a2ea000503a31b2fb
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2019-02-09 (Sat, 09 Feb 2019)

  Changed paths:
    M src/lxc/caps.c

  Log Message:
  -----------
  Merge pull request #2829 from brauner/2019-02-08/capabilities

caps: check uid and euid


Compare: https://github.com/lxc/lxc/compare/f57860aca915...3e0aac16db5f


More information about the lxc-devel mailing list