Commit 53386adb by Serge Hallyn

Revert "cgroups: don't escape if we're not real root"

This reverts commit 8d961e28. Unfortunately I don't believe the check is correct in the general case. Signed-off-by: 's avatarSerge Hallyn <shallyn@cisco.com>
parent f4328733
...@@ -1368,7 +1368,7 @@ static char *cg_unified_get_current_cgroup(void) ...@@ -1368,7 +1368,7 @@ static char *cg_unified_get_current_cgroup(void)
bool will_escape; bool will_escape;
char *copy = NULL; char *copy = NULL;
will_escape = !am_host_unpriv(); will_escape = (geteuid() == 0);
if (will_escape) if (will_escape)
basecginfo = read_file("/proc/1/cgroup"); basecginfo = read_file("/proc/1/cgroup");
else 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