]> git.ipfire.org Git - thirdparty/lxc.git/commit
caps: check uid and euid 2831/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:17:04 +0000 (15:17 +0100)
commit8d18e582f87998e2ae1d7ce8729467d1721c20ac
treea4e93d89ed286c42eae5a456409e243b7cf3fe9e
parent3d277c519f133338e295ef8a919da22bfbc1a3d6
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