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.
This commit is contained in:
Serge Hallyn 2025-11-14 04:32:36 +00:00 • committed by Serge Hallyn
commit 9891d2f79a
No known key found for this signature in database
GPG key ID: 3570DA17270ACE24