mirror of https://github.com/OpenIPC/firmware.git
28 lines
718 B
Diff
28 lines
718 B
Diff
diff -drupN a/kernel/user.c b/kernel/user.c
|
|
--- a/kernel/user.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/kernel/user.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -16,6 +16,7 @@
|
|
#include <linux/interrupt.h>
|
|
#include <linux/export.h>
|
|
#include <linux/user_namespace.h>
|
|
+#include <linux/proc_fs.h>
|
|
#include <linux/proc_ns.h>
|
|
|
|
/*
|
|
@@ -201,6 +202,7 @@ struct user_struct *alloc_uid(kuid_t uid
|
|
}
|
|
spin_unlock_irq(&uidhash_lock);
|
|
}
|
|
+ proc_register_uid(uid);
|
|
|
|
return up;
|
|
|
|
@@ -222,6 +224,7 @@ static int __init uid_cache_init(void)
|
|
spin_lock_irq(&uidhash_lock);
|
|
uid_hash_insert(&root_user, uidhashentry(GLOBAL_ROOT_UID));
|
|
spin_unlock_irq(&uidhash_lock);
|
|
+ proc_register_uid(GLOBAL_ROOT_UID);
|
|
|
|
return 0;
|
|
}
|