On Mon, Mar 31, 2025 at 4:49 PM Amir Goldstein <amir73il@xxxxxxxxx> wrote: > > On Mon, Mar 31, 2025 at 4:37 PM Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > > > On Mon, 31 Mar 2025 at 15:51, Amir Goldstein <amir73il@xxxxxxxxx> wrote: > > > > > @@ -99,6 +100,20 @@ If the filesystem object to be marked is not a directory, the error > > > .B ENOTDIR > > > shall be raised. > > > .TP > > > +.BR FAN_MARK_MNTNS " (since Linux 6.14)" > > > +.\" commit 0f46d81f2bce970b1c562aa3c944a271bbec2729 > > > +Mark the mount namespace of the path specified by > > > +.IR pathname . > > > +If > > > +.I pathname > > > +is not itself a mount point, > > > +the mount namespace of the mount containing > > > +.I pathname > > > +will be marked. > > > > This was the original version, but it was changed to take an nsfs path > > (/proc/$PID/ns/mnt) instead. > Revised as: .BR FAN_MARK_MNTNS " (since Linux 6.14)" .\" commit 0f46d81f2bce970b1c562aa3c944a271bbec2729 Mark the mount namespace specified by .IR pathname . If the .I pathname is not a path that represents a mount namespace (e.g. .BR /proc/ pid /ns/mnt ), the call fails with the error .BR EINVAL . An fanotify group that is initialized with flag .B FAN_REPORT_MNT is required. .TP Thanks, Amir.