lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun,  5 May 2019 21:38:00 +0800
From:   Chengguang Xu <cgxu519@...il.com>
To:     ebiederm@...ssion.com, jannh@...gle.com, serge@...lyn.com,
        christian@...uner.io, keescook@...omium.org
Cc:     linux-kernel@...r.kernel.org, Chengguang Xu <cgxu519@...il.com>
Subject: [PATCH] ns: modify function comment for projid

Some function comments about projid are described
as uid, so fix it.

Signed-off-by: Chengguang Xu <cgxu519@...il.com>
---
 kernel/user_namespace.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index 923414a246e9..6e917fc072d0 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -516,8 +516,8 @@ EXPORT_SYMBOL(from_kgid_munged);
  *	@ns:  User namespace that the projid is in
  *	@projid: Project identifier
  *
- *	Maps a user-namespace uid pair into a kernel internal kuid,
- *	and returns that kuid.
+ *	Maps a user-namespace projid pair into a kernel internal kprojid,
+ *	and returns that kprojid.
  *
  *	When there is no mapping defined for the user-namespace projid
  *	pair INVALID_PROJID is returned.  Callers are expected to test
@@ -526,7 +526,7 @@ EXPORT_SYMBOL(from_kgid_munged);
  */
 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid)
 {
-	/* Map the uid to a global kernel uid */
+	/* Map the projid to a global kernel projid */
 	return KPROJIDT_INIT(map_id_down(&ns->projid_map, projid));
 }
 EXPORT_SYMBOL(make_kprojid);
@@ -545,7 +545,7 @@ EXPORT_SYMBOL(make_kprojid);
  */
 projid_t from_kprojid(struct user_namespace *targ, kprojid_t kprojid)
 {
-	/* Map the uid from a global kernel uid */
+	/* Map the projid from a global kernel projid */
 	return map_id_up(&targ->projid_map, __kprojid_val(kprojid));
 }
 EXPORT_SYMBOL(from_kprojid);
-- 
2.17.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ