diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 823ed6cd424..bc676fc6981 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -39,6 +39,9 @@ bool manager_owns_host_root_cgroup(Manager *m) { * appears to be no nice way to detect whether we are in a CLONE_NEWCGROUP namespace we instead just check if * we run in any kind of container virtualization. */ + if (MANAGER_IS_USER(m)) + return false; + if (detect_container() > 0) return false;