]> git.ipfire.org Git - thirdparty/lxc.git/commit
caps: check uid and euid 2829/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 8 Feb 2019 14:11:46 +0000 (15:11 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 8 Feb 2019 14:11:46 +0000 (15:11 +0100)
commitdf9bf8ca39fe1c0866f5aa4c53004afd2e14f46b
treecb003248f4db89b055f328d83f5d71864f216e5b
parent42bd57bdbdb103eeb2ca67027983af5b8c6fa4b7
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@ubuntu.com>
src/lxc/caps.c