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:
parent
2ea8cba266
commit
1762262e61
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user