News for hackers. Stuff that matters.
Re:Where do argc and argv come from? by cryptonector on Monday August 10, 2020 @05:09PM (#24114029)
There are OSes where altering `argv[0]` changes the ps strings, and ones where it doesn't. Arranging to support this is tricky, as it can be a way to attack users of ps(1) and /proc!
Re:Where do argc and argv come from? by saagarjha on Monday August 10, 2020 @08:48PM (#24116050)
Fun fact: iTerm recently had to redesign some of their APIs because the process name APIs would be susceptible to a malicious program overwriting its argv (the normal API for this has the kernel read out of the process's address space).