core: reload SELinux label cache on daemon-reload
authorChristian Göttsche <cgzones@googlemail.com>
Wed, 27 Nov 2019 18:43:47 +0000 (19:43 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 25 Jan 2021 14:01:42 +0000 (15:01 +0100)
commitc67be1c7d69a0662ab85720aa0209110c39479f9
treeceef2caba72dfcab573a3bcbf9b2c5ec9fa80c6b
parentea425381a675a2ce4d9519d534fe27c1012ac92e
core: reload SELinux label cache on daemon-reload

Reloading the SELinux label cache here enables a light-wight follow-up of a SELinux policy change, e.g. adding a label for a RuntimeDirectory.

Closes: #13363
(cherry picked from commit a9dfac21ec850eb5dcaf1ae9ef729389e4c12802)

Resolves: #1888912
src/basic/selinux-util.c
src/basic/selinux-util.h
src/core/main.c