Skip to content

Commit

Permalink
Merge pull request #2213 from hallyn/2018-03-13/revert-cg
Browse files Browse the repository at this point in the history
Revert "cgroups: don't escape if we're not real root"
  • Loading branch information
Christian Brauner committed Mar 13, 2018
2 parents f432873 + 53386ad commit 93936fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -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
Expand Down

0 comments on commit 93936fb

Please sign in to comment.