]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core: support cgroup v2 device controller 10062/head
authorRoman Gushchin <guro@fb.com>
Mon, 8 Oct 2018 21:33:05 +0000 (14:33 -0700)
committerRoman Gushchin <guro@fb.com>
Tue, 9 Oct 2018 16:47:51 +0000 (09:47 -0700)
commit084c7007804b08d13acc90bf3145c5ac82d1c8a1
treef2a655f2305005155ebdead12a57c2743939b16e
parent91cfdd8d29b353dc1fd825673c9a23e00c92a341
core: support cgroup v2 device controller

Cgroup v2 provides the eBPF-based device controller, which isn't currently
supported by systemd. This commit aims to provide such support.

There are no user-visible changes, just the device policy and whitelist
start working if cgroup v2 is used.
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/core/bpf-devices.c [new file with mode: 0644]
src/core/bpf-devices.h [new file with mode: 0644]
src/core/cgroup.c
src/core/meson.build
src/core/unit.c
src/core/unit.h
src/test/test-cgroup-mask.c