Summary: | kppp: killing pppd after Alt-Ctrl-Bcksp shutsdown FreeBSD | ||
---|---|---|---|
Product: | [Applications] kppp | Reporter: | J E Drews <j.e.drews> |
Component: | general | Assignee: | Harri Porten <porten> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | hausmann |
Priority: | NOR | ||
Version: | 2.1.2 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
J E Drews
2003-03-10 03:10:29 UTC
It seems that sighandler_child in opener.cpp sends a SIGUSR1 to init (which results in a system shutdown, since it's part of kppp's setuid helper) while trying to kill its parent process. I don't know if getppid()'s behaviour of returning init as the parent process is bogus, however, if the rest of kppp is gone after a (forced) XFree86-crash, that might just be true. I think sighandler_child could use a bit of sanity checking before signalling anything to its alleged parent. This bug could be used as a first step to a local DOS attack, the second step needed would be to somehow force pppd to die (for example by pulling the cable, turning off the modem, etc). Related bug btw.: 23715 One can argue whether this is a pppd bug or not, but it actually kills its entire process group when the connection is terminated (see also kill_my_pg in pppd/ main.c) . See also http://cr.yp.to/daemontools/faq/create.html#pgrphack I don't know if this has been fixed. I stopped using Kde about 5 months ago. Just go ahead and close this -- it will never be fixed. FreeBSD has userland PPP. |