]> git.ipfire.org Git - thirdparty/systemd.git/commit
socket: assign socket units to a default slice unconditionally 6893/head
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 18:09:21 +0000 (20:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 18:09:21 +0000 (20:09 +0200)
commit88af31f92221aac652fe5584093abb0e68bc544a
tree1b10fd5edbfffca2ccc2e859528d7e60a0939422
parent7960b0c704f2b41705219ba36f0cd6f9a29cef99
socket: assign socket units to a default slice unconditionally

Due to the chown() logic socket units might end up with processes even
if no explicit command is defined for them, hence let's make sure these
processes are in the right cgroup, and that means within a slice.

Mount, swap and service units unconditionally are assigned to a slice
already, let's do the same here, too.

(This becomes more important as soon as the ebpf/firewall stuff is
merged, as there'll be another reason to fork off processes then)
src/core/socket.c