Thread (7 messages) 7 messages, 4 authors, 2025-04-01

Re: [PATCH] fanotify: Document mount namespace events

From: Amir Goldstein <amir73il@gmail.com>
Date: 2025-03-31 14:58:53
Also in: linux-fsdevel

On Mon, Mar 31, 2025 at 4:49 PM Amir Goldstein [off-list ref] wrote:
On Mon, Mar 31, 2025 at 4:37 PM Miklos Szeredi [off-list ref] wrote:
quoted
On Mon, 31 Mar 2025 at 15:51, Amir Goldstein [off-list ref] wrote:
quoted
@@ -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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help