]> granicus.if.org Git - shadow/commit
idmap: always seteuid to the owner of the namespace
authorGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 20 Nov 2018 19:43:43 +0000 (20:43 +0100)
committerSerge Hallyn <shallyn@cisco.com>
Sat, 24 Nov 2018 23:30:46 +0000 (17:30 -0600)
commit59c2dabb264ef7b3137f5edb52c0b31d5af0cf76
tree654137aac2c7fbc7be45d4c029a344d90bee3ac8
parent42324e501768675993235e03f7e4569135802d18
idmap: always seteuid to the owner of the namespace

simplify the condition for setting the euid of the process.  Now it is
always set when we are running as root, the issue was introduced with
the commit 52c081b02c4ca4432330ee336a60f6f803431e63

Changelog: 2018-11-24 - seh - enforce that euid only gets set to ruid if
   it currently == 0 (i.e. really was setuid-*root*).

Closes: https://github.com/genuinetools/img/issues/191
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
libmisc/idmapping.c