Re: [PATCH] userns: skip id map lookup for init_user_ns

From: Li Qiang

Date: Sat Dec 05 2026 - 04:52:18 EST


Hi Alex,

Thanks for the review. I've dropped the long comment in v2.

> Then you can just take &ns->uid_map and pass it down.

The wrappers also served the GID and project ID paths, which need
gid_map and projid_map respectively. I've removed both wrappers and
moved the init_user_ns check into the six conversion functions. Each
function now takes just the namespace and the ID, and the fallback
still uses the appropriate map.

Thanks,
Li Qiang