mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: David Howells <dhowells@redhat.com>
Cc: viro@ftp.linux.org.uk, hch@infradead.org, linux-kernel@vger.kernel.org
Subject: Re: Credentials test patch
Date: Thu, 13 Sep 2007 13:09:53 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LFD.0.999.0709131304510.16478@woody.linux-foundation.org> (raw)
In-Reply-To: <1577.1189713412@redhat.com>



On Thu, 13 Sep 2007, David Howells wrote:
> 
> Here's a patch that implements a very basic set of COW credentials. 

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

  reply	other threads:[~2007-09-13 20:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-13 19:56 David Howells
2007-09-13 20:09 ` Linus Torvalds [this message]
2007-09-13 21:19 ` David Howells
2007-09-13 21:33   ` Linus Torvalds
2007-09-15 15:51 ` Ulrich Drepper
2007-09-17 11:02 ` David Howells
2007-09-17 14:28   ` Ulrich Drepper
2007-09-17 15:27 ` David Howells
2007-09-18 16:33 ` David Howells
2007-09-18 16:44   ` Trond Myklebust
2007-09-18 17:58     ` Casey Schaufler
2007-09-18 18:03       ` Trond Myklebust
2007-09-18 18:24       ` David Howells
2007-09-18 17:25   ` David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.0.999.0709131304510.16478@woody.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ftp.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®