]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
core: general cgroup rework
authorLennart Poettering <lennart@poettering.net>
Thu, 27 Jun 2013 02:14:27 +0000 (04:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Jun 2013 02:17:34 +0000 (04:17 +0200)
commit4ad490007b70e6ac18d3cb04fa2ed92eba1451fa
tree20c7aab57b1f2722be1a057a28a6e7c16788c976
parentabb26902e424c4142b68ead35676028b12249b77
core: general cgroup rework

Replace the very generic cgroup hookup with a much simpler one. With
this change only the high-level cgroup settings remain, the ability to
set arbitrary cgroup attributes is removed, so is support for adding
units to arbitrary cgroup controllers or setting arbitrary paths for
them (especially paths that are different for the various controllers).

This also introduces a new -.slice root slice, that is the parent of
system.slice and friends. This enables easy admin configuration of
root-level cgrouo properties.

This replaces DeviceDeny= by DevicePolicy=, and implicitly adds in
/dev/null, /dev/zero and friends if DeviceAllow= is used (unless this is
turned off by DevicePolicy=).
57 files changed:
Makefile.am
TODO
src/core/cgroup-attr.c [deleted file]
src/core/cgroup-attr.h [deleted file]
src/core/cgroup-semantics.c [deleted file]
src/core/cgroup-semantics.h [deleted file]
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-cgroup.c [new file with mode: 0644]
src/core/dbus-cgroup.h [new file with mode: 0644]
src/core/dbus-execute.c
src/core/dbus-execute.h
src/core/dbus-manager.c
src/core/dbus-mount.c
src/core/dbus-service.c
src/core/dbus-slice.c
src/core/dbus-socket.c
src/core/dbus-swap.c
src/core/dbus-unit.c
src/core/dbus-unit.h
src/core/dbus.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/main.c
src/core/manager.c
src/core/manager.h
src/core/mount.c
src/core/mount.h
src/core/service.c
src/core/service.h
src/core/slice.c
src/core/slice.h
src/core/socket.c
src/core/socket.h
src/core/special.h
src/core/swap.c
src/core/swap.h
src/core/unit.c
src/core/unit.h
src/login/logind-machine.c
src/login/logind-session.c
src/login/logind-user.c
src/shared/cgroup-label.c
src/shared/cgroup-show.c
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/shared/fileio.c
src/shared/mkdir.c
src/shared/mkdir.h
src/systemctl/systemctl.c
src/test/test-cgroup.c
units/-.slice [new file with mode: 0644]
units/slices.target
units/system.slice