login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
12
Re: [PATCH 4/4] KEYS: Add keyctl function to get a security label
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: David Howells <dhowells@...>
Cc: <torvalds@...>, <linux-kernel@...>, <dhowells@...>
Subject:
Re: [PATCH 4/4] KEYS: Add keyctl function to get a security label
Date: Tuesday, February 12, 2008 - 7:51 pm
On Fri, 08 Feb 2008 16:04:40 +0000 David Howells <dhowells@redhat.com> wrote:
quoted text
> + key_ref = lookup_user_key(NULL, keyid, 0, 1, KEY_VIEW); > + if (IS_ERR(key_ref)) { > + if (PTR_ERR(key_ref) != -EACCES) > + return PTR_ERR(key_ref); > + > + /* viewing a key under construction is also permitted if we > + * have the authorisation token handy */ > + instkey = key_get_instantiation_authkey(keyid); > + if (IS_ERR(instkey)) > + return PTR_ERR(key_ref); > + key_put(instkey);
This check looks a wee bit racy? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/4] KEYS: Increase the payload size when instantiati...
, David Howells
, (Fri Feb 8, 12:04 pm)
[PATCH 4/4] KEYS: Add keyctl function to get a security label
, David Howells
, (Fri Feb 8, 12:04 pm)
Re: [PATCH 4/4] KEYS: Add keyctl function to get a security ...
, Andrew Morton
, (Tue Feb 12, 7:51 pm)
Re: [PATCH 4/4] KEYS: Add keyctl function to get a security ...
, David Howells
, (Wed Feb 13, 8:38 am)
[PATCH 3/4] KEYS: Allow the callout data to be passed as a b...
, David Howells
, (Fri Feb 8, 12:04 pm)
[PATCH 2/4] KEYS: Check starting keyring as part of search
, David Howells
, (Fri Feb 8, 12:04 pm)
Re: [PATCH 2/4] KEYS: Check starting keyring as part of search
, Andrew Morton
, (Tue Feb 12, 7:47 pm)
Re: [PATCH 2/4] KEYS: Check starting keyring as part of search
, David Howells
, (Wed Feb 13, 8:35 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
2.6.23-rc6-mm1
jjohansen
[AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Linus Torvalds
Re: [GIT]: Networking
Mark Lord
Re: 2.6.25-rc8: FTP transfer errors
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
640 guests
online.
Syndicate