selinux: create standard user-runtime nodes with default context
authorChristian Göttsche <cgzones@googlemail.com>
Fri, 10 Jul 2020 19:48:02 +0000 (21:48 +0200)
committerChristian Göttsche <cgzones@googlemail.com>
Fri, 10 Jul 2020 19:55:13 +0000 (21:55 +0200)
commit8d9cbd809db492df9d94c0c664bd0d2e53416531
treef8f345cd87fdedcb77e995dc3b692834d9469ef2
parent7a3e4dc38b3e3ef60d4886aa2c1cb871f49bfee9
selinux: create standard user-runtime nodes with default context

Currently systemd-user-runtime-dir does not create the files in
/run/user/$UID/systemd/inaccessible with the default SELinux label.
The user and role part of these labels should be based on the user
related to $UID and not based on the process context of
systemd-user-runtime-dir.

Since v246-rc1 (9664be199af6) /run/user/$UID/systemd is also created by
systemd-user-runtime-dir and should also be created with the default
SELinux context.
src/shared/dev-setup.c