Re: Credentials test patch

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Howells <dhowells@...>
Cc: <viro@...>, <hch@...>, <linux-kernel@...>
Date: Thursday, September 13, 2007 - 4:09 pm

On Thu, 13 Sep 2007, David Howells wrote:

That "current_cred" thing is really too ugly to live.

Why is it trying to make it look like a variable? That will just confuse 
people, and/or make them think it's a cheap thing rather than some complex 
function call.

Also, why does the "__current_cred()" function have those illogical and 
insane "#ifdef CONFIG_KEYS" things in it, when it cannot be used/work 
sanely without it (and when the header file does a

	+#ifndef CONFIG_KEYS
	+#define __current_cred()       ({ current->cred; })
	+#else
	..

anyway?)

IOW, this patch should be taken out and shot, for apparently actively 
trying to obfuscate what the heck is going on.

		Linus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Credentials test patch, David Howells, (Thu Sep 13, 3:56 pm)
Re: Credentials test patch, David Howells, (Tue Sep 18, 12:33 pm)
Re: Credentials test patch, Trond Myklebust, (Tue Sep 18, 12:44 pm)
Re: Credentials test patch, Casey Schaufler, (Tue Sep 18, 1:58 pm)
Re: Credentials test patch, Trond Myklebust, (Tue Sep 18, 2:03 pm)
Re: Credentials test patch, David Howells, (Tue Sep 18, 2:24 pm)
Re: Credentials test patch, David Howells, (Tue Sep 18, 1:25 pm)
Re: Credentials test patch, David Howells, (Mon Sep 17, 11:27 am)
Re: Credentials test patch, Ulrich Drepper, (Sat Sep 15, 11:51 am)
Re: Credentials test patch, David Howells, (Mon Sep 17, 7:02 am)
Re: Credentials test patch, Ulrich Drepper, (Mon Sep 17, 10:28 am)
Re: Credentials test patch, Linus Torvalds, (Thu Sep 13, 4:09 pm)
Re: Credentials test patch, David Howells, (Thu Sep 13, 5:19 pm)
Re: Credentials test patch, Linus Torvalds, (Thu Sep 13, 5:33 pm)