[RFC PATCH v2 04/21] kernel/user: export free_uid
From: Jonathan Lemon <hidden>
Date: 2020-07-27 22:44:55
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Jonathan Lemon <hidden>
Date: 2020-07-27 22:44:55
Subsystem:
the rest · Maintainer:
Linus Torvalds
get_uid is a static inline which can be called from a module, so free_uid should also be callable from a module. Signed-off-by: Jonathan Lemon <redacted> --- kernel/user.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/kernel/user.c b/kernel/user.c
index b1635d94a1f2..1e015abf0a2b 100644
--- a/kernel/user.c
+++ b/kernel/user.c@@ -171,6 +171,7 @@ void free_uid(struct user_struct *up) if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags)) free_user(up, flags); } +EXPORT_SYMBOL_GPL(free_uid); struct user_struct *alloc_uid(kuid_t uid) {
--
2.24.1