lkml.org 
[lkml]   [2012]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v10 07/11] signal, x86: add SIGSYS info and make it synchronous.
    On 02/22/2012 04:08 PM, Kees Cook wrote:
    >>
    >> Hrm, it might be possible to do_exit(SIGSYS) which would be both. It
    >> looks like tsk->exit_code would be SIGSYS then, but I'll look a little
    >> more closely to see what that'll actually do.
    >
    > As long as there's no way it can get blocked, I'd be fine with that.
    > It would, actually, be better than SIGKILL because, as Andy said, it's
    > more distinguishable from other situations. I've long wanted a signal
    > to be used for "violated policy" that wasn't just a straight SIGKILL.
    >

    Can we really introduce force-kill semantics for a POSIX-defined signal?
    Other user space programs might use it for other purposes.

    I'm wondering if the right thing may be to introduce some variant of
    exit() which can return more information about a signal, including some
    kind of cause code for SIGKILL?

    -hpa

    --
    H. Peter Anvin, Intel Open Source Technology Center
    I work for Intel. I don't speak on their behalf.



    \
     
     \ /
      Last update: 2012-02-23 01:33    [W:2.787 / U:0.584 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site