diff options
Diffstat (limited to 'kernel/user.c')
-rw-r--r-- | kernel/user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/user.c b/kernel/user.c index 74cadea8466f..f0e561e6d085 100644 --- a/kernel/user.c +++ b/kernel/user.c | |||
@@ -174,6 +174,8 @@ static int user_kobject_create(struct user_struct *up) | |||
174 | if (error) | 174 | if (error) |
175 | kobject_del(kobj); | 175 | kobject_del(kobj); |
176 | 176 | ||
177 | kobject_uevent(kobj, KOBJ_ADD); | ||
178 | |||
177 | done: | 179 | done: |
178 | return error; | 180 | return error; |
179 | } | 181 | } |
@@ -189,6 +191,7 @@ int __init uids_kobject_init(void) | |||
189 | 191 | ||
190 | /* create under /sys/kernel dir */ | 192 | /* create under /sys/kernel dir */ |
191 | uids_kobject.parent = &kernel_subsys.kobj; | 193 | uids_kobject.parent = &kernel_subsys.kobj; |
194 | uids_kobject.kset = &kernel_subsys; | ||
192 | kobject_set_name(&uids_kobject, "uids"); | 195 | kobject_set_name(&uids_kobject, "uids"); |
193 | kobject_init(&uids_kobject); | 196 | kobject_init(&uids_kobject); |
194 | 197 | ||
@@ -228,6 +231,7 @@ static void remove_user_sysfs_dir(struct work_struct *w) | |||
228 | goto done; | 231 | goto done; |
229 | 232 | ||
230 | sysfs_remove_file(kobj, &up->user_attr.attr); | 233 | sysfs_remove_file(kobj, &up->user_attr.attr); |
234 | kobject_uevent(kobj, KOBJ_REMOVE); | ||
231 | kobject_del(kobj); | 235 | kobject_del(kobj); |
232 | 236 | ||
233 | sched_destroy_user(up); | 237 | sched_destroy_user(up); |