diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 5fd23f4d7..d9e3edd45 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -702,9 +702,11 @@ static int create_item(Item *i) { case CREATE_FIFO: + label_context_set(i->path, S_IFIFO); RUN_WITH_UMASK(0000) { r = mkfifo(i->path, i->mode); } + label_context_clear(); if (r < 0 && errno != EEXIST) { log_error("Failed to create fifo %s: %m", i->path);