Linus Torvalds 9020d0d844 vfs-6.12.mount
-----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQRAhzRXHqcMeLMyaSiRxhvAZXjcogUCZuQEmwAKCRCRxhvAZXjc
 otRsAQCUdlBS/ky2JiYn3ePURKYVBgRq/+PnmhRrBNDuv+ToZwD+NRLNlOM8FzQy
 c8BMSq0rkwO2C5Aax3kGxgTPMEuuCwc=
 =QLvm
 -----END PGP SIGNATURE-----

Merge tag 'vfs-6.12.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs

Pull vfs mount updates from Christian Brauner:
 "Recently, we added the ability to list mounts in other mount
  namespaces and the ability to retrieve namespace file descriptors
  without having to go through procfs by deriving them from pidfds.

  This extends nsfs in two ways:

   (1) Add the ability to retrieve information about a mount namespace
       via NS_MNT_GET_INFO.

       This will return the mount namespace id and the number of mounts
       currently in the mount namespace. The number of mounts can be
       used to size the buffer that needs to be used for listmount() and
       is in general useful without having to actually iterate through
       all the mounts.

      The structure is extensible.

   (2) Add the ability to iterate through all mount namespaces over
       which the caller holds privilege returning the file descriptor
       for the next or previous mount namespace.

       To retrieve a mount namespace the caller must be privileged wrt
       to it's owning user namespace. This means that PID 1 on the host
       can list all mounts in all mount namespaces or that a container
       can list all mounts of its nested containers.

       Optionally pass a structure for NS_MNT_GET_INFO with
       NS_MNT_GET_{PREV,NEXT} to retrieve information about the mount
       namespace in one go.

  (1) and (2) can be implemented for other namespace types easily.

  Together with recent api additions this means one can iterate through
  all mounts in all mount namespaces without ever touching procfs.

  The commit message in 49224a345c48 ('Merge patch series "nsfs: iterate
  through mount namespaces"') contains example code how to do this"

* tag 'vfs-6.12.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
  nsfs: iterate through mount namespaces
  file: add fput() cleanup helper
  fs: add put_mnt_ns() cleanup helper
  fs: allow mount namespace fd
2024-09-16 11:15:26 +02:00
..
2024-08-13 13:53:09 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 08:54:30 +02:00
2024-09-16 09:14:02 +02:00
2024-07-15 11:14:59 -07:00
2024-07-15 11:14:59 -07:00
2024-09-16 09:14:02 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 08:54:30 +02:00
2024-07-09 10:40:03 +02:00
\n
2024-07-17 13:11:42 -07:00
2024-09-16 08:35:09 +02:00
2024-09-16 08:54:30 +02:00
2024-09-01 06:55:47 +12:00
2024-09-16 08:54:30 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 09:36:59 +02:00
2024-07-18 14:48:11 -07:00
2024-05-28 11:52:53 +02:00
2024-08-21 22:32:58 +02:00
2024-09-12 19:28:48 -05:00
2024-09-16 08:54:30 +02:00
2024-04-23 13:27:43 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 09:34:08 +02:00
2024-08-29 06:20:44 +12:00
2024-07-23 17:30:42 -07:00
2024-07-15 11:14:59 -07:00
2024-09-16 08:54:30 +02:00
2024-04-25 20:56:20 -07:00
2024-09-16 08:35:09 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 09:14:02 +02:00
2024-08-28 13:05:39 +02:00
2024-09-16 08:54:30 +02:00
2024-08-28 13:05:39 +02:00
2024-03-11 10:21:06 -07:00
2024-09-16 11:15:26 +02:00
2024-09-16 08:54:30 +02:00
2024-09-16 11:15:26 +02:00
2024-08-09 12:46:59 +02:00
2024-09-16 09:14:02 +02:00
2024-09-16 09:14:02 +02:00
2024-05-02 16:28:20 +02:00
2024-05-24 13:34:07 +02:00
2024-07-15 14:20:22 -07:00
2024-09-16 08:35:09 +02:00
2024-04-10 16:23:02 -06:00