]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/socket.c
core: rework context initialization/destruction logic
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Mar 2014 19:40:05 +0000 (20:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Mar 2014 20:06:53 +0000 (21:06 +0100)
commit598459cebac7cc93089769a992e7b03287f77e12
treeab690b534e7578ce1d9421d5127224a43fd5fded
parentae439c9f9b8a9cbb320d66290e3f9ad0e2f37378
core: rework context initialization/destruction logic

Let's automatically initialize the kill, exec and cgroup contexts of the
various unit types when the object is constructed, instead of
invididually in type-specific code.

Also, when PrivateDevices= is set, set DevicePolicy= to closed.
src/core/mount.c
src/core/scope.c
src/core/service.c
src/core/slice.c
src/core/socket.c
src/core/swap.c
src/core/unit.c
src/core/unit.h