1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-01 05:47:04 +03:00

tmpfiles: set up selinux label proeprly when creating fifos

(cherry picked from commit 45c196a76b2d883552c90807386d9bed40da822b)

Conflicts:
	src/shared/util.c
This commit is contained in:
Lennart Poettering 2014-06-16 13:20:38 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 2ea8cba266
commit 1762262e61

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);