f69648753a58ffb28882516623ca674c3eb11dc4
Addresses fufesou's #580 re-review: - The child runs in its own process group and the deadline kills the whole group, so a hung loginctl or a leaked grandchild cannot survive the child or keep the pipes open past the reads. Verified: a deliberately leaked sleep grandchild no longer outlives the probe. - The probe parses compositor-controlled data, so before touching the socket the child drops to the runtime directory's owner and refuses to probe at all if the drop fails, rather than parsing untrusted bytes as root. loginctl still runs as root first, since finding the seat needs it. - first_buffered_line now distinguishes an inspected-but-empty pipe (WouldBlock) from an uninspectable one (fcntl or read error): only a real absence of the handshake latches the binary unsupported, an inspection failure does not. - rustfmt-clean.
Description
原始地址 https://github.com/rustdesk/hbb_common
并未做任何修改
只是为了拉取代码方便
701 KiB
0 Stars
1 Watchers
0 Forks
Languages
Rust
100%