core: respect SELinuxContext= for socket creation
authorChristian Göttsche <cgzones@googlemail.com>
Fri, 23 Sep 2022 17:00:22 +0000 (19:00 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 24 Sep 2022 05:35:54 +0000 (14:35 +0900)
commit599b384924bbef9f8f7fa5700c6fa35a404d9a98
tree71cb4f2dd2ced24dc362f2cde126cb673212a834
parent3b51a183affb3ab84bf9a418a184bd5d965d7476
core: respect SELinuxContext= for socket creation

On socket creation respect the SELinuxContext= setting of the associated
service, such that the initial created socket has the same label as the
future process accepting the connection (since w.r.t SELinux sockets
normally have the same label as the owning process).

Triggered by #24702
src/core/socket.c