Results 1 to 3 of 3

Thread: Way to prevent SIGKILL

  1. #1

    Way to prevent SIGKILL

    I want to make a Client-Server Application in which once a client Application is connected to Server, user at client side should not be able to terminate it unless permission is given by server.
    Client side User should not be able to terminate Client Application by kill -9 <pid> or Force Quit from Activity monitor

    I have trapped all other signals but not able to find a way to prevent SIGKILL to my Application ?

    I want to implement this functionality on BSD UNIX system

    Any help would be really great Thanks

  2. #2
    Join Date
    Dec 2004
    It's impossible to trap a SIGKILL as the kernel doesn't even send the signal to the process, it just 'deletes' the process from it's list. This would hold true for most (if not all) *NIX platforms. HTH

  3. #3
    If you want to get tricky, this is more of a system level thing, but you can use systemTap to intercept SIGKILL:

    There used to be a pretty well written document on how to do this, but I haven't found it... I'll let you know if I dig it up.
    63,000 bugs in the code, 63,000 bugs,
    ya get 1 whacked with a service pack,
    now there&#039;s 63,005 bugs in the code!!

Similar Threads

  1. Prevent my users from spamming and making ddos attacks
    By gueurk in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 01-22-2012, 12:55 PM
  2. Prevent User from being able to change IP
    By Suhas! in forum Redhat / Fedora
    Replies: 1
    Last Post: 09-29-2007, 09:28 AM
  3. Replies: 2
    Last Post: 08-06-2007, 12:34 PM
  4. Replies: 7
    Last Post: 03-29-2007, 01:46 PM
  5. Prevent root login with ssh
    By friskydrifter in forum Redhat / Fedora
    Replies: 2
    Last Post: 12-06-2002, 10:02 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts