Ubuntu: how to kill process inside the kernel itself not from the user level



Question:

I am trying to kill a specific process from the kernel (not in the user level) so I was trying to use sys_kill, kill, kill_pid but it did not work the only one did not give me an error is kill_pid but it did not kill the process that I asked so any help in that?


Solution:1

No you cant. You are in userspace. glibc or shell cant do that. That is why linux is more secure than windows.

Signal only works in userspace, so there is no way you can stop kernel thread


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »