Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120745
b: refs/heads/master
c: c37bbb0
h: refs/heads/master
i:
  120743: 3f5e5cc
v: v3
  • Loading branch information
Serge E. Hallyn authored and James Morris committed Dec 7, 2008
1 parent 575bb80 commit 73c5d98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec98ce480ada787f2cfbd696980ff3564415505b
refs/heads/master: c37bbb0fdcc01610fd55604eb6927210a1d20044
4 changes: 4 additions & 0 deletions trunk/kernel/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ static int uids_user_create(struct user_struct *up)
int error;

memset(kobj, 0, sizeof(struct kobject));
if (up->user_ns != &init_user_ns)
return 0;
kobj->kset = uids_kset;
error = kobject_init_and_add(kobj, &uids_ktype, NULL, "%d", up->uid);
if (error) {
Expand Down Expand Up @@ -281,6 +283,8 @@ static void remove_user_sysfs_dir(struct work_struct *w)
unsigned long flags;
int remove_user = 0;

if (up->user_ns != &init_user_ns)
return;
/* Make uid_hash_remove() + sysfs_remove_file() + kobject_del()
* atomic.
*/
Expand Down

0 comments on commit 73c5d98

Please sign in to comment.