All of lore.kernel.org
 help / color / mirror / Atom feed
* ptrace versus setuid changes in 4.14?
@ 2017-12-21 14:18 Tom Horsley
  2017-12-22 20:28 ` Laura Abbott
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Horsley @ 2017-12-21 14:18 UTC (permalink / raw)
  To: linux-kernel

On my fedora 26 box with a 4.13 kernel, when a process
under ptrace control did an exec of a setuid program,
the program lost all of its setuid privileges and
ptrace could operate on it like a normal program.

Experimental evidence seems to indicate that on
fedora 27 with a 4.14 kernel, ptrace cannot
do a PEEKDATA to read anything from the just
execed setuid program. (I get errno 5 - I/O error).

Am I confused somehow, or did something really change
in this vicinity?

It puts a real crimp in my fancy debug feature to
patch code into a setuid program to make it re-exec itself,
then detach from it. (I don't suppose we could get
a setoptions feature to tell the kernel to detach
from setuid programs automagically and let the debugger
know it is no longer in control of the process?)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-22 23:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-21 14:18 ptrace versus setuid changes in 4.14? Tom Horsley
2017-12-22 20:28 ` Laura Abbott
2017-12-22 20:55   ` Tom Horsley
2017-12-22 23:14     ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.