mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
Every implementation of ->task_kill() does nothing when the signal comes from the kernel. This is correct, but means that check_kill_permission() should call security_task_kill() only for SI_FROMUSER() case, and we can remove the same check from ->task_kill() implementations. (sadly, check_kill_permission() is the last user of signal->session/__session but we can't s/task_session_nr/task_session/ here). NOTE: Eric W. Biederman pointed out cap_task_kill() should die, and I think he is very right. Signed-off-by: Oleg Nesterov <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Serge Hallyn <[email protected]> Cc: Roland McGrath <[email protected]> Cc: Casey Schaufler <[email protected]> Cc: David Quigley <[email protected]> Cc: Eric Paris <[email protected]> Cc: Harald Welte <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Stephen Smalley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>