Skip to content

daemon: recognise named Unix stdin sockets - #1121

Merged
steadytao merged 2 commits into
masterfrom
daemon-unix-stdin
Oct 8, 2026
Merged

steadytao merged 2 commits into
masterfrom
daemon-unix-stdin

Conversation

@steadytao

@steadytao steadytao commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Fix for #1119

Summary

is_inetd_socket() was narrowed in #1075 to accept only connected IP streams. This fixed unnamed local socketpairs such as ADB process channels but also rejected accepted named Unix listeners used by socket activation. Accept a connected Unix stream only when getsockname() reports a named local endpoint. This covers filesystem and Linux abstract Unix sockets while continuing to reject unnamed socketpairs.

@steadytao
steadytao merged commit 6eb05b3 into master Oct 8, 2026
21 of 22 checks passed
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