podman/pkg/cgroups
Giuseppe Scrivano afd0818326
rootless: automatically create a systemd scope
when running in rootless mode and using systemd as cgroup manager
create automatically a systemd scope when the user doesn't own the
current cgroup.

This solves a couple of issues:

on cgroup v2 it is necessary that a process before it can moved to a
different cgroup tree must be in a directory owned by the unprivileged
user.  This is not always true, e.g. when creating a session with su
-l.

Closes: https://github.com/containers/libpod/issues/3937

Also, for running systemd in a container it was before necessary to
specify "systemd-run --scope --user podman ...", now this is done
automatically as part of this PR.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-09-12 08:35:26 +02:00
..
blkio.go cgroups: attempt a recursive rmdir 2019-07-11 18:07:48 +02:00
cgroups.go Fix error message on podman stats on cgroups v1 rootless environments 2019-08-19 07:41:50 -04:00
cgroups_supported.go rootless: automatically create a systemd scope 2019-09-12 08:35:26 +02:00
cgroups_unsupported.go rootless: automatically create a systemd scope 2019-09-12 08:35:26 +02:00
cpu.go cgroups: attempt a recursive rmdir 2019-07-11 18:07:48 +02:00
cpuset.go cgroups: attempt a recursive rmdir 2019-07-11 18:07:48 +02:00
memory.go cgroups: attempt a recursive rmdir 2019-07-11 18:07:48 +02:00
pids.go cgroups: attempt a recursive rmdir 2019-07-11 18:07:48 +02:00
systemd.go pkg/cgroups: use DBUS session when rootless 2019-08-14 15:46:07 +02:00