Re: [PATCH v2 1/4] userns: introduce capability bounding set for user namespaces

From: Jarkko Sakkinen

Date: Thu Nov 19 2026 - 10:05:45 EST


On Thu, Nov 19, 2026 at 10:42:05AM +0000, Hallgrimur H. Gunnarsson wrote:
> static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns)

I read the diff through but this led me to dead end. Cannot find this
function from anywhere. I look the changes again once this is sorted
out becaus this is interesting.

I wanted to look at the call site to understand how cap_bset gets set,
which is not now possible but I do get the gist and agree with it.

I'd figure getting this relates to my rootns patches (perhas). One key
mechanism for me resolving the unprivileged in my use case is
MOVE_MOUNT_T_MNTNS [1], which is orthogonal but just pointing out
the problem space.

I read through https://lwn.net/Articles/978846/ to understand the topic
overall. Just mentionining as a possible addition to the cover letter
(not a priority/necessity).

Hope these help and can be kept in the loop :-)

[1] https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/commit/?h=rootns&id=cb058646b3dd76b13f5044846c119fe1d28db4bf

Br, Jarkko