One of the most annoying programming challenges I've ever faced π€¦ββοΈ #1073
Replies: 1 comment 3 replies
-
|
I work on a closed source project that has the same requirement. I agree the problem is hard but getting the PID is the simpler part. So for example, curl is called few packets are send and shortly after the server response and the process is killed. The windows where the proc file needs to be read is very short and if the connection is not "paused" you may end up with invalid PID, since both windows and linux can reuse PIDs it can even read the wrong proc if you dont account for that edge case. You probably already know that but Portmaster has a reliable process -> connection detection on windows and linux. I believe that the eBPF part is easy to implement and will not make sniffnet "heavy" or hart to install. And since the linux is doing heavy validation during the JIT complication it will not crash the kernel. (This does not solve the short process problem by itself) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In today's blog post, I went through the challenges and implementation details behind #170: supporting process identification in Sniffnet.
If implementing this feature seems like a no-brainer to you, well⦠read the post because it turned out to be a much more complex task than I could imagine, and this is the reason why the related GitHub issue has been open for almost 3 years.
Beta Was this translation helpful? Give feedback.
All reactions