> If you're not entering a password at some point, then they're in memory and available to all anyway.

They entered a password to log in probably. And Linux had a setting to restrict ptrace since years.