]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/socket.c
service: don't try to determine selinux label for socket activation if RootImage...
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Dec 2023 13:12:09 +0000 (14:12 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Dec 2023 02:51:51 +0000 (11:51 +0900)
commit8017ed7e0e0ffaafcf9856f963928ca2a21340b6
tree9fe868e8b8bdef7e9e164108bcd8d61eec83172a
parenta16335cd17dd91e37217ebf13c981e74177b4363
service: don't try to determine selinux label for socket activation if RootImage= is used

We cannot determine the SELinux label ahead of time if RootImage= is
used, since we'd have to mount the image then, hence don't, and handle
this cleanly, and gracefully.

While we are at it, stop "reaching over" so much from the socket code to
the service code, and instead provide function that most of the hard
work in service.c that socket.c just calls.

While we are at it, add debug logging and stuff.

I noticed the issue when also noticing #30560, but that one is harder to
fix, hence I avoided it for now.
src/core/service.c
src/core/service.h
src/core/socket.c