chiark / gitweb /
shared: Drop 'name=' prefix from SYSTEMD_CGROUP_CONTROLLER define.
authorDimitri John Ledkov <dimitri.j.ledkov@intel.com>
Mon, 1 Jun 2015 11:46:52 +0000 (12:46 +0100)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:01:41 +0000 (10:01 +0100)
commitbbdb338a860d20c637a6445d458f341e87c1df05
tree0ee3a417c4214f2e3ee2f5217656f999c1183e87
parent1c0f0483c0afbdde3eaf220eb4e0015533dba3b5
shared: Drop 'name=' prefix from SYSTEMD_CGROUP_CONTROLLER define.

In cgtop,mount-setup,nspawn the name= prefix is hard-coded in the
mount options, and the define is not used.

Everywhere else, we explicitly white-list allow 'name=' prefix to be
used with all controllers, and strip it out to 'normalise' the
controller name. That work is mostly inflicted on us due to 'name='
prefix in the define. Dropping this prefix makes everything more sane
overall.
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/shared/def.h