Re: Credentials test patch

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ulrich Drepper <drepper@...>
Cc: <dhowells@...>, <viro@...>, <hch@...>, <torvalds@...>, <linux-kernel@...>
Date: Monday, September 17, 2007 - 7:02 am

Ulrich Drepper <drepper@gmail.com> wrote:


No, you can't.  The filesystems sys_faccessat() then invokes are entitled to
take a reference to it - the SunRPC authentication stuff, for example - so you
can't just preemptively unallocate it as would occur with an automatic variable.


A better way would be to compare fsuid/fsgid to uid/gid and to just take an
extra ref on the incumbent cred object if they're the same, rather than always
allocating a new one.  That, I suspect, would speed up 99.99% of the cases.

David
-
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)