Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgroup: enable only the controllers needed #46

Merged
merged 2 commits into from May 11, 2019

Conversation

Projects
None yet
1 participant
@giuseppe
Copy link
Owner

commented May 11, 2019

only the root user can enable all the controllers for the unprivileged users. Change it to request only the controllers we need.

In the cgroup v2 unified mode, systemd enables by default the pids and memory controllers, an unprivileged user can use them without any change to the system configuration.

Signed-off-by: Giuseppe Scrivano giuseppe@scrivano.org

cgroup: in unified mode report the errors also for rootless
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>

@giuseppe giuseppe force-pushed the cgroup2-improvements branch from 41be5a3 to 5fabe1a May 11, 2019

cgroup: enable only the controllers needed
only the root user can enable all the controllers for the unprivileged
users.  Change it to request only the controllers we need.
In the cgroup v2 unified mode, systemd enables by default the pids and
memory controllers, an unprivileged user can use them without any
change to the system configuration.

Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>

@giuseppe giuseppe force-pushed the cgroup2-improvements branch from 5fabe1a to 7f9d521 May 11, 2019

@giuseppe giuseppe merged commit 7f9d521 into master May 11, 2019

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@giuseppe giuseppe deleted the cgroup2-improvements branch May 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.