Unverified Commit 93936fbc by Christian Brauner Committed by GitHub

Merge pull request #2213 from hallyn/2018-03-13/revert-cg

Revert "cgroups: don't escape if we're not real root"
parents f4328733 53386adb
......@@ -1368,7 +1368,7 @@ static char *cg_unified_get_current_cgroup(void)
bool will_escape;
char *copy = NULL;
will_escape = !am_host_unpriv();
will_escape = (geteuid() == 0);
if (will_escape)
basecginfo = read_file("/proc/1/cgroup");
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment