nstree: make iterator generic

Move the namespace iteration infrastructure originally introduced for
mount namespaces into a generic library usable by all namespace types.

Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2025-09-12 13:52:40 +02:00
commit 885fc8ac0a
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
5 changed files with 337 additions and 1 deletions