Thread (8 messages) 8 messages, 2 authors, 2025-04-05

Re: [RESEND PATCH v3 2/2] fanotify: Document mount namespace events

From: Alejandro Colomar <alx@kernel.org>
Date: 2025-04-05 11:38:14

Hi Amir,

A small doubt below.

On Fri, Apr 04, 2025 at 12:47:23PM +0200, Amir Goldstein wrote:
quoted hunk ↗ jump to hunk
@@ -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 specified by
+.IR pathname .
+If the
+.I pathname
+is not a path that represents a mount namespace (e.g.
+.IR /proc/ pid /ns/mnt ),
Are there any other paths that may represent a mount namespace?  Maybe
we should change s/e.g./i.e./?


Have a lovely day!
Alex
+the call fails with the error
+.BR EINVAL .
+An fanotify group that was initialized with flag
+.B FAN_REPORT_MNT
+is required.
+.TP
 .B FAN_MARK_MOUNT
 Mark the mount specified by
 .IR path .
-- 
<https://www.alejandro-colomar.es/>
<https://www.alejandro-colomar.es:8443/>
<http://www.alejandro-colomar.es:8080/>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help