fn has_kill_permission( sender: &Arc<Task>, target_id: TaskId, ) -> Result<bool, SyscallError>
Returns whether kill permission is available.