A school assignment requires demonstrating the use of the cap_kill capability. To my understanding, this capability is supposed to allow a given program to send any signal to any process and be successful.
I've used the following line:
setcap cap_kill+ep /bin/kill
So, the kill command should be able to send SIGKILL for example to any process.
However, after adding this capability, I'm still only able to kill my own processes, so I'm unable to see any effect of adding the capability. I think I should even be able to kill -9 1
with this capability yet I receive bash: kill: (1) - Operation not permitted
How am I supposed to demonstrate this capability? Thank you.