tmpfiles: set up selinux label proeprly when creating fifos

(cherry picked from commit 45c196a76b)

Conflicts:
	src/shared/util.c
This commit is contained in:
Lennart Poettering
2014-06-16 19:03:40 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 2ea8cba266
commit 1762262e61
+2
View File
@@ -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);