On Thu, Aug 24, 2000 at 10:44:40PM +0200, almesber@lrc.di.epfl.ch wrote:
> yodaiken@fsmlabs.com wrote:
> > The root thread can tell Linux: I'm a pthreads root thread, I don't want
> > POSIX signals, I want raw signals.
>
> Hmm, have you just created unkillable processes any non-privileged
> user can run ?
>
> pthread_trust_me(RAW_SIGNALS_PLEASE);
> for (;;); /* hee hee */
This is not a tough one:
pthread_raw_signals
This call shifts delivered signal numbers up so that
"special" POSIX signals can be delivered to a process. Sending signal N to
a thread that has executed this call causes the kernel to deliver
signal N+SIG_RAWSHIFT. So kill(pid,SIG_KILL-SIG_RAWSHIFT) is needed
to hammer such a process.
Or:
Make it a root pthread daemon.
Or:
Make SIG_KILL still work as usual, with the CLONE_PTHREAD flag
causing all children to be killed too, but with SUSPEND etc
coming in raw.
-- --------------------------------------------------------- Victor Yodaiken Finite State Machine Labs: The RTLinux Company. www.fsmlabs.com www.rtlinux.com- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:14 EST