]> Gentwo Git Trees - linux/.git/commit
Clarify the rootid_owns_currentns
authorSerge Hallyn <serge@hallyn.com>
Fri, 14 Nov 2025 04:32:36 +0000 (04:32 +0000)
committerSerge Hallyn <sergeh@kernel.org>
Wed, 19 Nov 2025 00:00:19 +0000 (18:00 -0600)
commit9891d2f79a9fe9b77ad290f950eb8fa3e375330e
tree08882b763689bb2228e43b411e93bd874057e7e9
parent211ddde0823f1442e4ad052a2f30f050145ccada
Clarify the rootid_owns_currentns

Split most of the rootid_owns_currentns() functionality
into a more generic rootid_owns_ns() function which
will be easier to write tests for.

Rename the functions and variables to make clear that
the ids being tested could be any uid.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
CC: Ryan Foster <foster.ryan.r@gmail.com>
CC: Christian Brauner <brauner@kernel.org>
---
v2: change the function parameter documentation to mollify the bot.
security/commoncap.c