logoalt Hacker News

1718627440 • today at 9:35 AM • 2 replies • view on HN

I recently got several models refusing to answer my question about how to write from another process into an already opened file descriptor. They all initially gave me "that's illegal, stop hacking" even though it is clear, that it is on the same machine and user, with a program I compiler. (Ended up just attaching gdb.)


Replies

ethin • today at 10:22 AM

Yep, this control server thingy I was trying to get it to implement was entirely local. In theory it could be used over the network, or tailscale... But I have no idea why anyone would do that, and I may consider just removing the address part entirely since the entire point is to debug the testbed, verify measurements and physical modelling, etc., and not to be some secure control endpoint or something.

mitxela • today at 12:19 PM

You can try opening /proc/foo/fd/bar - even though it appears as a symlink, opening it is more like dup'ing the file descriptor, not like opening the underlying file