]> www.infradead.org Git - linux.git/commit
fs: export the mount ns id via statmount
authorJosef Bacik <josef@toxicpanda.com>
Mon, 24 Jun 2024 15:49:47 +0000 (11:49 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 28 Jun 2024 07:53:30 +0000 (09:53 +0200)
commit09b31295f833031c88419550172703d45c5401e3
tree50bd10c7505d59a109f1bafa41f6d8ec1d1eaa5a
parent1901c92497bd90caf608a474f1bf4d8795b372a2
fs: export the mount ns id via statmount

In order to allow users to iterate through children mount namespaces via
listmount we need a way for them to know what the ns id for the mount.
Add a new field to statmount called mnt_ns_id which will carry the ns id
for the given mount entry.

Co-developed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/6dabf437331fb7415d886f7c64b21cb2a50b1c66.1719243756.git.josef@toxicpanda.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c
include/uapi/linux/mount.h