Files
ack-tegra/include/linux
Miklos Szeredi 0f46d81f2b fanotify: notify on mount attach and detach
Add notifications for attaching and detaching mounts.  The following new
event masks are added:

  FAN_MNT_ATTACH  - Mount was attached
  FAN_MNT_DETACH  - Mount was detached

If a mount is moved, then the event is reported with (FAN_MNT_ATTACH |
FAN_MNT_DETACH).

These events add an info record of type FAN_EVENT_INFO_TYPE_MNT containing
these fields identifying the affected mounts:

  __u64 mnt_id    - the ID of the mount (see statmount(2))

FAN_REPORT_MNT must be supplied to fanotify_init() to receive these events
and no other type of event can be received with this report type.

Marks are added with FAN_MARK_MNTNS, which records the mount namespace from
an nsfs file (e.g. /proc/self/ns/mnt).

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/20250129165803.72138-3-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-02-05 17:21:07 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-04 15:27:35 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-06 07:36:39 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-02 12:01:43 +01:00
…
…
…
…
…
…
…
…
2025-01-18 12:33:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-17 09:16:11 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-25 20:22:31 -08:00
…
…
…
…
…
…
…
…
…
2024-11-28 14:49:28 +01:00
2025-01-09 10:06:14 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-07 18:06:51 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-18 09:39:37 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-25 08:22:26 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-14 19:45:35 +01:00
…
…
2024-12-13 08:49:31 -07:00
…
…
…
2024-12-09 13:48:23 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-16 11:48:11 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-15 15:07:23 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-25 20:22:42 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-16 17:22:59 -08:00
2024-12-22 11:03:10 +01:00
…
…
…
…
…
…
…
…
2025-01-10 11:59:00 +01:00
2025-01-07 15:16:48 +01:00
…
…
…
…
…
…
…
…
2025-01-02 10:37:14 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-09 14:44:59 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-08 14:50:11 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-19 19:51:13 -08:00
2025-01-11 20:39:43 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-29 09:04:28 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-23 08:17:16 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-12-09 14:44:59 -08:00
…
…
…
…
…
…
…
…
…
…
…
…