Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tonyg
on March 29, 2024
|
parent
|
context
|
favorite
| on:
Backdoor in upstream xz/liblzma leading to SSH ser...
Strange protocol. Why not pass a path to a
file
that should be `touch`d and/or written to, I wonder? Would avoid the complexity of sockets.
Bu9818
on March 30, 2024
[–]
Services may be in a different mount namespace from systemd for sandboxing or other reasons (also means you have to worry about filesystem permissions I suppose). Passing an fd from the parent (systemd) is a nice direct channel between the processes
NewJazz
on March 30, 2024
|
parent
[–]
But systemd precisely doesn't pass an FD. If it did, you would just need to write() and close().
Bu9818
on March 30, 2024
|
root
|
parent
[–]
Yeah I was wrong about that, I confused it with socket-activation passing. The systemd-side socket is available from the process.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: