summaryrefslogtreecommitdiff
path: root/src/tmpfiles
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-16 13:20:38 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-16 13:20:38 +0200
commit45c196a76b2d883552c90807386d9bed40da822b (patch)
tree595514fc45ddf58af414f8b6ae68a5c5268b1e68 /src/tmpfiles
parenta01647e53727107d82382bc5c9d98c894e8f386c (diff)
tmpfiles: set up selinux label proeprly when creating fifos
Diffstat (limited to 'src/tmpfiles')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index df52085ff4..0fd2bd233a 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -719,9 +719,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);