mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 11:13:50 +00:00
Merge pull request #2212 from tych0/cgroup-escape-host-unpriv
cgroups: don't escape if we're not real root
This commit is contained in:
commit
f432873366
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user