Re: [PATCH] signals: check_kill_permission: don't check creds if same_thread_group()

From: David Howells
Date: Tue May 18 2010 - 04:55:41 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> Also, move "cred = current_cred()" down to avoid calling get_current()
> twice.

I don't see what you mean by this. same_thread_group() doesn't call
current_cred(), so why this change?

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/