Skip to content

do not fopen a FIFO in the TYPE command - #51

Open
Eusgor wants to merge 1 commit into
LINBIT:masterfrom
Eusgor:fix-type-fifo-blocking-fopen
Open

Eusgor wants to merge 1 commit into
LINBIT:masterfrom
Eusgor:fix-type-fifo-blocking-fopen

Conversation

@Eusgor

@Eusgor Eusgor commented Sep 28, 2026

Copy link
Copy Markdown

Opening a named pipe blocks until a writer appears. A peer can replace a synced path with MKFIFO and then issue TYPE, which leaves the daemon child stuck in open(). stat() the path first and refuse FIFOs.

Opening a named pipe blocks until a writer appears. A peer can replace
a synced path with MKFIFO and then issue TYPE, which leaves the daemon
child stuck in open(). stat() the path first and refuse FIFOs.

Signed-off-by: Evgeniy Gorbanyov <esgor@altlinux.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant