From mboxrd@z Thu Jan 1 00:00:00 1970 From: random832@fastmail.com (Random832) Date: Fri, 12 May 2017 20:51:43 -0400 Subject: [TUHS] The evolution of Unix facilities and architecture In-Reply-To: <20170513004423.F3A9C18C099@mercury.lcs.mit.edu> References: <20170513004423.F3A9C18C099@mercury.lcs.mit.edu> Message-ID: <1494636703.1615694.975085000.13626EAC@webmail.messagingengine.com> On Fri, May 12, 2017, at 20:44, Noel Chiappa wrote: > So now I'm wondering - was this really the bug? Or was there some > bug in ptrace I don't see, which was the actual bug that's being > discussed here. Ah. There's the other piece. You start the SUID program under the debugger, and rather than kicking off the debugger, it simply starts it non-suid. *However*, in the presence of shared text (either of the two cases being checked for in the other place), you can make changes to the text image (e.g. put whatever code you want at the entry point), which will be reused the *next* time it is started *without* the debugger.