projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18b6e04
)
User namespaces: use the current_user_ns() macro
author
Serge Hallyn
<serue@us.ibm.com>
Mon, 24 Nov 2008 21:24:10 +0000
(16:24 -0500)
committer
Serge E. Hallyn
<serue@us.ibm.com>
Mon, 24 Nov 2008 23:57:46 +0000
(18:57 -0500)
Fix up the last current_user()->user_ns instance to use
current_user_ns().
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
kernel/user.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/user.c
b/kernel/user.c
index c0ef3a464438badd79da9bb4195e43dba8ce6437..97202cb29adc333869f160819e1d4167f5576ff6 100644
(file)
--- a/
kernel/user.c
+++ b/
kernel/user.c
@@
-361,7
+361,7
@@
struct user_struct *find_user(uid_t uid)
{
struct user_struct *ret;
unsigned long flags;
- struct user_namespace *ns = current_user
()->user_ns
;
+ struct user_namespace *ns = current_user
_ns()
;
spin_lock_irqsave(&uidhash_lock, flags);
ret = uid_hash_find(uid, uidhashentry(ns, uid));