]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/namespace.c
namespace: don't invoke loopback_setup() unless we allocate a CLONE_NEWNET namespace
authorLennart Poettering <lennart@poettering.net>
Wed, 31 Jan 2024 12:19:45 +0000 (13:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Jan 2024 12:22:07 +0000 (13:22 +0100)
commita5387637c2bcb3b16c61eb6905f52419714a187a
tree62b4c585499ca64b93214eac4c385c015049ba40
parent887b2529eb4361838be3260e9b3b0f6c04246699
namespace: don't invoke loopback_setup() unless we allocate a CLONE_NEWNET namespace

It doesn't really make sense to initialize the loopback device if we are
not called for a network namespace.

Follow-up for 54c2459d560283f556e331246f64776cebd6eba6
src/core/namespace.c