[PATCH v4 2/4] fanotify: notify on mount attach and detach
Miklos Szeredi
miklos at szeredi.hu
Tue Jan 28 13:37:00 UTC 2025
On Tue, 28 Jan 2025 at 13:42, Miklos Szeredi <miklos at szeredi.hu> wrote:
> fanotify_mark(fan_fd, FAN_MARK_ADD | FAN_MARK_MOUNT, FAN_OPEN,
> AT_FDCWD, "/proc/self/ns/mnt");
Sorry, this should have been:
1)
fanotify_mark(fan_fd, FAN_MARK_ADD | FAN_MARK_MNTNS, FAN_MNT_ATTACH |
FAN_MNT_DETACH, AT_FDCWD, "/proc/self/ns/mnt");
This notifies on mount and unmount events in the current mount namespace.
More information about the Linux-security-module-archive
mailing list