Messages in this thread | | | Date | Thu, 18 Nov 2004 16:52:26 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: Potential security problem in patch: Fix reading /proc/<pid>/mem when parent dies. |
| |
On Thu, 18 Nov 2004, Alan Cox wrote: > > The original point of this was that if our parent changed then our new > parent is not aware of our special status. As a result we can send > random signals to init and since it does not see SIGCLD we can get > zombies or worse when we exit.
How could we send random signals? That's what the "exit_signal" thing is for, and the code does
if (p->exit_signal != -1) p->exit_signal = SIGCHLD;
for that.
Is there any other way to set exit_signal afterwards? If so, I think we should have a security check at _that_ point.
Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |