Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305987
b: refs/heads/master
c: d0bd659
h: refs/heads/master
i:
  305985: 1fc87ba
  305983: e919b40
v: v3
  • Loading branch information
Eric W. Biederman committed Apr 7, 2012
1 parent 2deb57d commit 83aa864
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f9ac6d93a0916de09d11b0a247ade8f4347728b
refs/heads/master: d0bd6594e286bd6145e04e19e8d3fa2e902cb800
2 changes: 1 addition & 1 deletion trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ struct user_struct {
/* Hash table maintenance information */
struct hlist_node uidhash_node;
uid_t uid;
struct user_namespace *user_ns;
struct user_namespace *_user_ns; /* Don't use will be removed soon */

#ifdef CONFIG_PERF_EVENTS
atomic_long_t locked_vm;
Expand Down
6 changes: 3 additions & 3 deletions trunk/kernel/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct user_struct root_user = {
.files = ATOMIC_INIT(0),
.sigpending = ATOMIC_INIT(0),
.locked_shm = 0,
.user_ns = &init_user_ns,
._user_ns = &init_user_ns,
};

/*
Expand All @@ -72,7 +72,7 @@ static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent)
static void uid_hash_remove(struct user_struct *up)
{
hlist_del_init(&up->uidhash_node);
put_user_ns(up->user_ns);
put_user_ns(up->_user_ns); /* It is safe to free the uid hash table now */
}

static struct user_struct *uid_hash_find(uid_t uid, struct hlist_head *hashent)
Expand Down Expand Up @@ -153,7 +153,7 @@ struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid)
new->uid = uid;
atomic_set(&new->__count, 1);

new->user_ns = get_user_ns(ns);
new->_user_ns = get_user_ns(ns);

/*
* Before adding this, check whether we raced
Expand Down

0 comments on commit 83aa864

Please sign in to comment.