core: first lookup and cache creds then apply them after namespace setup
authorDjalal Harouni <tixxdz@opendz.org>
Sun, 23 Oct 2016 21:24:14 +0000 (23:24 +0200)
committerDjalal Harouni <tixxdz@opendz.org>
Sun, 23 Oct 2016 21:24:14 +0000 (23:24 +0200)
commit4d885bd326d958827d926512ecc5e0d21f6ad76b
tree0426b563263667ff2e9a6e78e8b0c1f6df7e0b1f
parent7d78f7cea82dc7b4ced77f86a05124add2509390
core: first lookup and cache creds then apply them after namespace setup

This fixes: https://github.com/systemd/systemd/issues/4357

Let's lookup and cache creds then apply them. We also switch from
getgroups() to getgrouplist().
src/core/execute.c