]> www.infradead.org Git - linux.git/commit
fs: add an ioctl to get the mnt ns id from nsfs
authorJosef Bacik <josef@toxicpanda.com>
Mon, 24 Jun 2024 15:49:50 +0000 (11:49 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 28 Jun 2024 07:53:31 +0000 (09:53 +0200)
commite8e43a1fcc5c07575f37e40f8a2cd78aee46f9a0
tree58c23b611a71a68ce96cd91acd984c910960e460
parent71aacb4c8c3d19da053363a5fe7538a8af082d56
fs: add an ioctl to get the mnt ns id from nsfs

In order to utilize the listmount() and statmount() extensions that
allow us to call them on different namespaces we need a way to get the
mnt namespace id from user space.  Add an ioctl to nsfs that will allow
us to extract the mnt namespace id in order to make these new extensions
usable.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/180449959d5a756af7306d6bda55f41b9d53e3cb.1719243756.git.josef@toxicpanda.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/nsfs.c
include/uapi/linux/nsfs.h