* [PATCH] ns: modify function comment for projid
@ 2019-05-05 13:38 Chengguang Xu
0 siblings, 0 replies; only message in thread
From: Chengguang Xu @ 2019-05-05 13:38 UTC (permalink / raw)
To: ebiederm, jannh, serge, christian, keescook; +Cc: linux-kernel, Chengguang Xu
Some function comments about projid are described
as uid, so fix it.
Signed-off-by: Chengguang Xu <cgxu519@gmail.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-05 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-05 13:38 [PATCH] ns: modify function comment for projid Chengguang Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®