selinux: create /run/systemd/userdb directory and sockets with default SELinux context

This commit is contained in:
Christian Göttsche
2020-09-01 16:26:12 +02:00
parent 45ae2f725e
commit 63e00ccd8e
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ int manager_varlink_init(Manager *m) {
return log_error_errno(r, "Failed to register varlink methods: %m");
if (!MANAGER_IS_TEST_RUN(m)) {
(void) mkdir_p("/run/systemd/userdb", 0755);
(void) mkdir_p_label("/run/systemd/userdb", 0755);
r = varlink_server_listen_address(s, "/run/systemd/userdb/io.systemd.DynamicUser", 0666);
if (r < 0)