Unverified Commit f4328733 by Christian Brauner Committed by GitHub

Merge pull request #2212 from tych0/cgroup-escape-host-unpriv

cgroups: don't escape if we're not real root
parents e3bc3b86 8d961e28
......@@ -1368,7 +1368,7 @@ static char *cg_unified_get_current_cgroup(void)
bool will_escape;
char *copy = NULL;
will_escape = (geteuid() == 0);
will_escape = !am_host_unpriv();
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