Debian Codegraph @

templates/man2/fanotify_init.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "fanotify_init"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-05-17"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "fanotify_init - create and initialize fanotify group"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
78 "B<#include E<lt>sys/fanotify.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<int fanotify_init(unsigned int >I<flags>B<, unsigned int >I<event_f_flags>B<);>\n"
86 msgstr ""
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid "For an overview of the fanotify API, see B<fanotify>(7)."
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "B<fanotify_init>() initializes a new fanotify group and returns a file "
106 "descriptor for the event queue associated with the group."
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "The file descriptor is used in calls to B<fanotify_mark>(2) to specify the "
114 "files, directories, mounts, or filesystems for which fanotify events shall "
115 "be created. These events are received by reading from the file descriptor. "
116 "Some events are only informative, indicating that a file has been accessed. "
117 "Other events can be used to determine whether another application is "
118 "permitted to access a file or directory. Permission to access filesystem "
119 "objects is granted by writing to the file descriptor."
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "Multiple programs may be using the fanotify interface at the same time to "
127 "monitor the same files."
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "The number of fanotify groups per user is limited. See B<fanotify>(7) for "
135 "details about this limit."
136 msgstr ""
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "The I<flags> argument contains a multi-bit field defining the notification "
143 "class of the listening application and further single bit fields specifying "
144 "the behavior of the file descriptor."
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "If multiple listeners for permission events exist, the notification class is "
152 "used to establish the sequence in which the listeners receive the events."
153 msgstr ""
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "Only one of the following notification classes may be specified in I<flags>:"
160 msgstr ""
161
162 #. type: TP
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "B<FAN_CLASS_PRE_CONTENT>"
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
171 #: opensuse-tumbleweed
172 msgid ""
173 "This value allows the receipt of events notifying that a file has been "
174 "accessed and events for permission decisions if a file may be accessed. It "
175 "is intended for event listeners that may need to write data to files before "
176 "their final data can be accessed. This notification class might be used by "
177 "hierarchical storage managers, for example. Use of this flag requires the "
178 "B<CAP_SYS_ADMIN> capability."
179 msgstr ""
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "B<FAN_CLASS_CONTENT>"
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "This value allows the receipt of events notifying that a file has been "
193 "accessed and events for permission decisions if a file may be accessed. It "
194 "is intended for event listeners that need to access files when they already "
195 "contain their final content. This notification class might be used by "
196 "malware detection programs, for example. Use of this flag requires the "
197 "B<CAP_SYS_ADMIN> capability."
198 msgstr ""
199
200 #. type: TP
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "B<FAN_CLASS_NOTIF>"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "This is the default value. It does not need to be specified. This value "
212 "only allows the receipt of events notifying that a file has been accessed. "
213 "Permission decisions before the file is accessed are not possible."
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "Listeners with different notification classes will receive events in the "
221 "order B<FAN_CLASS_PRE_CONTENT>, B<FAN_CLASS_CONTENT>, B<FAN_CLASS_NOTIF>. "
222 "The order of notification for listeners in the same notification class is "
223 "undefined."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid "The following bits can additionally be set in I<flags>:"
230 msgstr ""
231
232 #. type: TP
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "B<FAN_CLOEXEC>"
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "Set the close-on-exec flag (B<FD_CLOEXEC>) on the new file descriptor. See "
244 "the description of the B<O_CLOEXEC> flag in B<open>(2)."
245 msgstr ""
246
247 #. type: TP
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "B<FAN_NONBLOCK>"
252 msgstr ""
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid ""
258 "Enable the nonblocking flag (B<O_NONBLOCK>) for the file descriptor. "
259 "Reading from the file descriptor will not block. Instead, if no data is "
260 "available, B<read>(2) fails with the error B<EAGAIN>."
261 msgstr ""
262
263 #. type: TP
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "B<FAN_UNLIMITED_QUEUE>"
268 msgstr ""
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid ""
274 "Remove the limit on the number of events in the event queue. See "
275 "B<fanotify>(7) for details about this limit. Use of this flag requires the "
276 "B<CAP_SYS_ADMIN> capability."
277 msgstr ""
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<FAN_UNLIMITED_MARKS>"
284 msgstr ""
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "Remove the limit on the number of fanotify marks per user. See "
291 "B<fanotify>(7) for details about this limit. Use of this flag requires the "
292 "B<CAP_SYS_ADMIN> capability."
293 msgstr ""
294
295 #. type: TP
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "B<FAN_REPORT_TID> (since Linux 4.20)"
300 msgstr ""
301
302 #. commit d0a6a87e40da49cfc7954c491d3065a25a641b29
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "Report thread ID (TID) instead of process ID (PID) in the I<pid> field of "
308 "the I<struct fanotify_event_metadata> supplied to B<read>(2) (see "
309 "B<fanotify>(7)). Use of this flag requires the B<CAP_SYS_ADMIN> capability."
310 msgstr ""
311
312 #. type: TP
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "B<FAN_ENABLE_AUDIT> (since Linux 4.15)"
317 msgstr ""
318
319 #. commit de8cd83e91bc3ee212b3e6ec6e4283af9e4ab269
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "Enable generation of audit log records about access mediation performed by "
325 "permission events. The permission event response has to be marked with the "
326 "B<FAN_AUDIT> flag for an audit log record to be generated. Use of this flag "
327 "requires the B<CAP_AUDIT_WRITE> capability."
328 msgstr ""
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<FAN_REPORT_FID> (since Linux 5.1)"
335 msgstr ""
336
337 #. commit a8b13aa20afb69161b5123b4f1acc7ea0a03d360
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "This value allows the receipt of events which contain additional information "
343 "about the underlying filesystem object correlated to an event. An "
344 "additional record of type B<FAN_EVENT_INFO_TYPE_FID> encapsulates the "
345 "information about the object and is included alongside the generic event "
346 "metadata structure. The file descriptor that is used to represent the "
347 "object correlated to an event is instead substituted with a file handle. It "
348 "is intended for applications that may find the use of a file handle to "
349 "identify an object more suitable than a file descriptor. Additionally, it "
350 "may be used for applications monitoring a directory or a filesystem that are "
351 "interested in the directory entry modification events B<FAN_CREATE>, "
352 "B<FAN_DELETE>, B<FAN_MOVE>, and B<FAN_RENAME>, or in events such as "
353 "B<FAN_ATTRIB>, B<FAN_DELETE_SELF>, and B<FAN_MOVE_SELF>. All the events "
354 "above require an fanotify group that identifies filesystem objects by file "
355 "handles. Note that without the flag B<FAN_REPORT_TARGET_FID>, for the "
356 "directory entry modification events, there is an information record that "
357 "identifies the modified directory and not the created/deleted/moved child "
358 "object. The use of B<FAN_CLASS_CONTENT> or B<FAN_CLASS_PRE_CONTENT> is not "
359 "permitted with this flag and will result in the error B<EINVAL>. See "
360 "B<fanotify>(7) for additional details."
361 msgstr ""
362
363 #. type: TP
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "B<FAN_REPORT_DIR_FID> (since Linux 5.9)"
368 msgstr ""
369
370 #. commit 83b7a59896dd24015a34b7f00027f0ff3747972f
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "Events for fanotify groups initialized with this flag will contain (see "
376 "exceptions below) additional information about a directory object correlated "
377 "to an event. An additional record of type B<FAN_EVENT_INFO_TYPE_DFID> "
378 "encapsulates the information about the directory object and is included "
379 "alongside the generic event metadata structure. For events that occur on a "
380 "non-directory object, the additional structure includes a file handle that "
381 "identifies the parent directory filesystem object. Note that there is no "
382 "guarantee that the directory filesystem object will be found at the location "
383 "described by the file handle information at the time the event is received. "
384 "When combined with the flag B<FAN_REPORT_FID>, two records may be reported "
385 "with events that occur on a non-directory object, one to identify the non-"
386 "directory object itself and one to identify the parent directory object. "
387 "Note that in some cases, a filesystem object does not have a parent, for "
388 "example, when an event occurs on an unlinked but open file. In that case, "
389 "with the B<FAN_REPORT_FID> flag, the event will be reported with only one "
390 "record to identify the non-directory object itself, because there is no "
391 "directory associated with the event. Without the B<FAN_REPORT_FID> flag, no "
392 "event will be reported. See B<fanotify>(7) for additional details."
393 msgstr ""
394
395 #. type: TP
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "B<FAN_REPORT_NAME> (since Linux 5.9)"
400 msgstr ""
401
402 #. commit 929943b38daf817f2e6d303ea04401651fc3bc05
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "Events for fanotify groups initialized with this flag will contain "
408 "additional information about the name of the directory entry correlated to "
409 "an event. This flag must be provided in conjunction with the flag "
410 "B<FAN_REPORT_DIR_FID>. Providing this flag value without "
411 "B<FAN_REPORT_DIR_FID> will result in the error B<EINVAL>. This flag may be "
412 "combined with the flag B<FAN_REPORT_FID>. An additional record of type "
413 "B<FAN_EVENT_INFO_TYPE_DFID_NAME>, which encapsulates the information about "
414 "the directory entry, is included alongside the generic event metadata "
415 "structure and substitutes the additional information record of type "
416 "B<FAN_EVENT_INFO_TYPE_DFID>. The additional record includes a file handle "
417 "that identifies a directory filesystem object followed by a name that "
418 "identifies an entry in that directory. For the directory entry modification "
419 "events B<FAN_CREATE>, B<FAN_DELETE>, and B<FAN_MOVE>, the reported name is "
420 "that of the created/deleted/moved directory entry. The event B<FAN_RENAME> "
421 "may contain two information records. One of type "
422 "B<FAN_EVENT_INFO_TYPE_OLD_DFID_NAME> identifying the old directory entry, "
423 "and another of type B<FAN_EVENT_INFO_TYPE_NEW_DFID_NAME> identifying the new "
424 "directory entry. For other events that occur on a directory object, the "
425 "reported file handle is that of the directory object itself and the reported "
426 "name is '.'. For other events that occur on a non-directory object, the "
427 "reported file handle is that of the parent directory object and the reported "
428 "name is the name of a directory entry where the object was located at the "
429 "time of the event. The rationale behind this logic is that the reported "
430 "directory file handle can be passed to B<open_by_handle_at>(2) to get an "
431 "open directory file descriptor and that file descriptor along with the "
432 "reported name can be used to call B<fstatat>(2). The same rule that applies "
433 "to record type B<FAN_EVENT_INFO_TYPE_DFID> also applies to record type "
434 "B<FAN_EVENT_INFO_TYPE_DFID_NAME>: if a non-directory object has no parent, "
435 "either the event will not be reported or it will be reported without the "
436 "directory entry information. Note that there is no guarantee that the "
437 "filesystem object will be found at the location described by the directory "
438 "entry information at the time the event is received. See B<fanotify>(7) "
439 "for additional details."
440 msgstr ""
441
442 #. type: TP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<FAN_REPORT_DFID_NAME>"
447 msgstr ""
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid "This is a synonym for (B<FAN_REPORT_DIR_FID>|B<FAN_REPORT_NAME>)."
453 msgstr ""
454
455 #. type: TP
456 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
457 #: opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "B<FAN_REPORT_TARGET_FID> (since Linux 5.17, 5.15.154, and 5.10.220)"
460 msgstr ""
461
462 #. commit d61fd650e9d206a71fda789f02a1ced4b19944c4
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "Events for fanotify groups initialized with this flag will contain "
468 "additional information about the child correlated with directory entry "
469 "modification events. This flag must be provided in conjunction with the "
470 "flags B<FAN_REPORT_FID>, B<FAN_REPORT_DIR_FID> and B<FAN_REPORT_NAME>. or "
471 "else the error B<EINVAL> will be returned. For the directory entry "
472 "modification events B<FAN_CREATE>, B<FAN_DELETE>, B<FAN_MOVE>, and "
473 "B<FAN_RENAME>, an additional record of type B<FAN_EVENT_INFO_TYPE_FID>, is "
474 "reported in addition to the information records of type "
475 "B<FAN_EVENT_INFO_TYPE_DFID>, B<FAN_EVENT_INFO_TYPE_DFID_NAME>, "
476 "B<FAN_EVENT_INFO_TYPE_OLD_DFID_NAME>, and "
477 "B<FAN_EVENT_INFO_TYPE_NEW_DFID_NAME>. The additional record includes a file "
478 "handle that identifies the filesystem child object that the directory entry "
479 "is referring to."
480 msgstr ""
481
482 #. type: TP
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "B<FAN_REPORT_DFID_NAME_TARGET>"
487 msgstr ""
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 msgid ""
493 "This is a synonym for (B<FAN_REPORT_DFID_NAME>|B<FAN_REPORT_FID>|"
494 "B<FAN_REPORT_TARGET_FID>)."
495 msgstr ""
496
497 #. type: TP
498 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
499 #: opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<FAN_REPORT_MNT> (since Linux 6.14)"
502 msgstr ""
503
504 #. commit 0f46d81f2bce970b1c562aa3c944a271bbec2729
505 #. type: Plain text
506 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
507 #: opensuse-tumbleweed
508 msgid ""
509 "This value allows the receipt of events which contain additional information "
510 "about the underlying mount correlated to an event. An additional record of "
511 "type B<FAN_EVENT_INFO_TYPE_MNT> encapsulates the information about the mount "
512 "and is included alongside the generic event metadata structure. The use of "
513 "B<FAN_CLASS_CONTENT>, B<FAN_CLASS_PRE_CONTENT>, or any of the "
514 "B<FAN_REPORT_DFID_NAME_TARGET> flags along with this flag is not permitted "
515 "and will result in the error B<EINVAL>. See B<fanotify>(7) for additional "
516 "details."
517 msgstr ""
518
519 #. type: TP
520 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
521 #: opensuse-leap-16-1 opensuse-tumbleweed
522 #, no-wrap
523 msgid "B<FAN_REPORT_PIDFD> (since Linux 5.15 and 5.10.220)"
524 msgstr ""
525
526 #. commit af579beb666aefb17e9a335c12c788c92932baf1
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 msgid ""
531 "Events for fanotify groups initialized with this flag will contain an "
532 "additional information record alongside the generic "
533 "I<fanotify_event_metadata> structure. This information record will be of "
534 "type B<FAN_EVENT_INFO_TYPE_PIDFD> and will contain a pidfd for the process "
535 "that was responsible for generating an event. A pidfd returned in this "
536 "information record object is no different to the pidfd that is returned when "
537 "calling B<pidfd_open>(2). Usage of this information record are for "
538 "applications that may be interested in reliably determining whether the "
539 "process responsible for generating an event has been recycled or "
540 "terminated. The use of the B<FAN_REPORT_TID> flag along with "
541 "B<FAN_REPORT_PIDFD> is currently not supported and attempting to do so will "
542 "result in the error B<EINVAL> being returned. This limitation is currently "
543 "imposed by the pidfd API as it currently only supports the creation of "
544 "pidfds for thread-group leaders. Creating pidfds for non-thread-group "
545 "leaders may be supported at some point in the future, so this restriction "
546 "may eventually be lifted. For more details on information records, see "
547 "B<fanotify>(7)."
548 msgstr ""
549
550 #. type: TP
551 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
552 #: opensuse-tumbleweed
553 #, no-wrap
554 msgid "B<FAN_REPORT_FD_ERROR> (since Linux 6.13 and 6.12.4 and 6.6.66)"
555 msgstr ""
556
557 #. commit 522249f05c5551aec9ec0ba9b6438f1ec19c138d
558 #. type: Plain text
559 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
560 #: opensuse-tumbleweed
561 msgid ""
562 "Events for fanotify groups initialized with this flag may contain an error "
563 "code that explains the reason for failure to open a file descriptor. The "
564 "I<.fd> member of the I<fanotify_event_metadata> structure normally contains "
565 "an open file descriptor associated with the object of the event or FAN_NOFD "
566 "in case a file descriptor could not be opened. For a group initialized with "
567 "this flag, instead of FAN_NOFD, the I<.fd> member of the "
568 "I<fanotify_event_metadata> structure will contain a negative error value. "
569 "When the group is also initialized with flag B<FAN_REPORT_PIDFD>, in case a "
570 "process file descriptor could not be opened, the I<.pidfd> member of the "
571 "I<fanotify_event_info_pidfd> structure will also contain a negative error "
572 "value. For more details, see B<fanotify>(7)."
573 msgstr ""
574
575 #. type: Plain text
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 msgid ""
579 "The I<event_f_flags> argument defines the file status flags that will be set "
580 "on the open file descriptions that are created for fanotify events. For "
581 "details of these flags, see the description of the I<flags> values in "
582 "B<open>(2). I<event_f_flags> includes a multi-bit field for the access "
583 "mode. This field can take the following values:"
584 msgstr ""
585
586 #. type: TP
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 #, no-wrap
590 msgid "B<O_RDONLY>"
591 msgstr ""
592
593 #. type: Plain text
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 msgid "This value allows only read access."
597 msgstr ""
598
599 #. type: TP
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 #, no-wrap
603 msgid "B<O_WRONLY>"
604 msgstr ""
605
606 #. type: Plain text
607 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
608 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
609 msgid "This value allows only write access."
610 msgstr ""
611
612 #. type: TP
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 #, no-wrap
616 msgid "B<O_RDWR>"
617 msgstr ""
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 msgid "This value allows read and write access."
623 msgstr ""
624
625 #. type: Plain text
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 msgid ""
629 "Additional bits can be set in I<event_f_flags>. The most useful values are:"
630 msgstr ""
631
632 #. type: TP
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 #, no-wrap
636 msgid "B<O_LARGEFILE>"
637 msgstr ""
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid ""
643 "Enable support for files exceeding 2\\ GB. Failing to set this flag will "
644 "result in an B<EOVERFLOW> error when trying to open a large file which is "
645 "monitored by an fanotify group on a 32-bit system."
646 msgstr ""
647
648 #. type: TP
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 #, no-wrap
652 msgid "B<O_CLOEXEC> (since Linux 3.18)"
653 msgstr ""
654
655 #. commit 0b37e097a648aa71d4db1ad108001e95b69a2da4
656 #. type: Plain text
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 msgid ""
660 "Enable the close-on-exec flag for the file descriptor. See the description "
661 "of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this may be useful."
662 msgstr ""
663
664 #. type: Plain text
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 msgid ""
668 "The following are also allowable: B<O_APPEND>, B<O_DSYNC>, B<O_NOATIME>, "
669 "B<O_NONBLOCK>, and B<O_SYNC>. Specifying any other flag in I<event_f_flags> "
670 "yields the error B<EINVAL> (but see BUGS)."
671 msgstr ""
672
673 #. type: SH
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "RETURN VALUE"
678 msgstr ""
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 msgid ""
684 "On success, B<fanotify_init>() returns a new file descriptor. On error, -1 "
685 "is returned, and I<errno> is set to indicate the error."
686 msgstr ""
687
688 #. type: SH
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 #, no-wrap
692 msgid "ERRORS"
693 msgstr ""
694
695 #. type: TP
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 #, no-wrap
699 msgid "B<EINVAL>"
700 msgstr ""
701
702 #. commit 23c9deeb3285d34fd243abb3d6b9f07db60c3cf4
703 #. type: Plain text
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 msgid ""
707 "An invalid value was passed in I<flags> or I<event_f_flags>. "
708 "B<FAN_ALL_INIT_FLAGS> (deprecated since Linux 4.20) defines all allowable "
709 "bits for I<flags>."
710 msgstr ""
711
712 #. type: TP
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, no-wrap
716 msgid "B<EMFILE>"
717 msgstr ""
718
719 #. type: Plain text
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 msgid ""
723 "The number of fanotify groups for this user exceeds the limit. See "
724 "B<fanotify>(7) for details about this limit."
725 msgstr ""
726
727 #. type: Plain text
728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
730 msgid ""
731 "The per-process limit on the number of open file descriptors has been "
732 "reached."
733 msgstr ""
734
735 #. type: TP
736 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
737 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
738 #, no-wrap
739 msgid "B<ENOMEM>"
740 msgstr ""
741
742 #. type: Plain text
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 msgid "The allocation of memory for the notification group failed."
746 msgstr ""
747
748 #. type: TP
749 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
750 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
751 #, no-wrap
752 msgid "B<ENOSYS>"
753 msgstr ""
754
755 #. type: Plain text
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 msgid ""
759 "This kernel does not implement B<fanotify_init>(). The fanotify API is "
760 "available only if the kernel was configured with B<CONFIG_FANOTIFY>."
761 msgstr ""
762
763 #. type: TP
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 #, no-wrap
767 msgid "B<EPERM>"
768 msgstr ""
769
770 #. type: Plain text
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 msgid ""
774 "The operation is not permitted because the caller lacks a required "
775 "capability."
776 msgstr ""
777
778 #. type: SH
779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
781 #, no-wrap
782 msgid "VERSIONS"
783 msgstr ""
784
785 #. commit 7cea2a3c505e87a9d6afc78be4a7f7be636a73a7
786 #. commit 7cea2a3c505e87a9d6afc78be4a7f7be636a73a7
787 #. type: Plain text
788 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
789 #: opensuse-leap-16-1 opensuse-tumbleweed
790 msgid ""
791 "Prior to Linux 5.13 (and 5.10.220), calling B<fanotify_init>() required the "
792 "B<CAP_SYS_ADMIN> capability. Since Linux 5.13 (and 5.10.220), users may "
793 "call B<fanotify_init>() without the B<CAP_SYS_ADMIN> capability to create "
794 "and initialize an fanotify group with limited functionality."
795 msgstr ""
796
797 #. type: TP
798 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
799 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
800 #, no-wrap
801 msgid "The limitations imposed on an event listener created by a user without the"
802 msgstr ""
803
804 #. type: Plain text
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 msgid "B<CAP_SYS_ADMIN> capability are as follows:"
808 msgstr ""
809
810 #. type: IP
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 #, no-wrap
814 msgid "\\[bu]"
815 msgstr ""
816
817 #. type: Plain text
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 msgid ""
821 "The user cannot request for an unlimited event queue by using "
822 "B<FAN_UNLIMITED_QUEUE>."
823 msgstr ""
824
825 #. type: Plain text
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 msgid ""
829 "The user cannot request for an unlimited number of marks by using "
830 "B<FAN_UNLIMITED_MARKS>."
831 msgstr ""
832
833 #. type: Plain text
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 msgid ""
837 "The user cannot request to use either notification classes "
838 "B<FAN_CLASS_CONTENT> or B<FAN_CLASS_PRE_CONTENT>. This means that user "
839 "cannot request permission events."
840 msgstr ""
841
842 #. type: Plain text
843 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
844 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
845 msgid ""
846 "The user is required to create a group that identifies filesystem objects by "
847 "file handles, for example, by providing the B<FAN_REPORT_FID> flag."
848 msgstr ""
849
850 #. type: Plain text
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 msgid ""
854 "The user is limited to only mark inodes. The ability to mark a mount or "
855 "filesystem via B<fanotify_mark>() through the use of B<FAN_MARK_MOUNT> or "
856 "B<FAN_MARK_FILESYSTEM> is not permitted."
857 msgstr ""
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 msgid ""
863 "The event object in the event queue is limited in terms of the information "
864 "that is made available to the unprivileged user. A user will also not "
865 "receive the pid that generated the event, unless the listening process "
866 "itself generated the event."
867 msgstr ""
868
869 #. type: SH
870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
872 #, no-wrap
873 msgid "STANDARDS"
874 msgstr ""
875
876 #. type: Plain text
877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
879 msgid "Linux."
880 msgstr ""
881
882 #. type: SH
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 #, no-wrap
886 msgid "HISTORY"
887 msgstr ""
888
889 #. was introduced in Linux 2.6.36 and enabled in Linux 2.6.37.
890 #. type: Plain text
891 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
892 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
893 msgid "Linux 2.6.37."
894 msgstr ""
895
896 #. type: SH
897 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
898 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
899 #, no-wrap
900 msgid "BUGS"
901 msgstr ""
902
903 #. type: Plain text
904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
906 msgid "The following bug was present before Linux 3.18:"
907 msgstr ""
908
909 #. Fixed by commit 0b37e097a648aa71d4db1ad108001e95b69a2da4
910 #. type: Plain text
911 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
912 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
913 msgid "The B<O_CLOEXEC> is ignored when passed in I<event_f_flags>."
914 msgstr ""
915
916 #. type: Plain text
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 msgid "The following bug was present before Linux 3.14:"
920 msgstr ""
921
922 #. Fixed by commit 48149e9d3a7e924010a0daab30a6197b7d7b6580
923 #. type: Plain text
924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
926 msgid ""
927 "The I<event_f_flags> argument is not checked for invalid flags. Flags that "
928 "are intended only for internal use, such as B<FMODE_EXEC>, can be set, and "
929 "will consequently be set for the file descriptors returned when reading from "
930 "the fanotify file descriptor."
931 msgstr ""
932
933 #. type: SH
934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
936 #, no-wrap
937 msgid "SEE ALSO"
938 msgstr ""
939
940 #. type: Plain text
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 msgid "B<fanotify_mark>(2), B<fanotify>(7)"
944 msgstr ""
945
946 #. type: TH
947 #: debian-trixie
948 #, no-wrap
949 msgid "2024-05-02"
950 msgstr ""
951
952 #. type: TH
953 #: debian-trixie
954 #, no-wrap
955 msgid "Linux man-pages 6.9.1"
956 msgstr ""
957
958 #. type: Plain text
959 #: debian-trixie
960 msgid "Standard C library (I<libc>, I<-lc>)"
961 msgstr ""
962
963 #. type: Plain text
964 #: debian-trixie fedora-44 fedora-rawhide
965 msgid ""
966 "This value allows the receipt of events notifying that a file has been "
967 "accessed and events for permission decisions if a file may be accessed. It "
968 "is intended for event listeners that need to access files before they "
969 "contain their final data. This notification class might be used by "
970 "hierarchical storage managers, for example. Use of this flag requires the "
971 "B<CAP_SYS_ADMIN> capability."
972 msgstr ""
973
974 #. type: TP
975 #: debian-trixie
976 #, no-wrap
977 msgid "B<FAN_REPORT_TARGET_FID> (since Linux 5.17)"
978 msgstr ""
979
980 #. type: TP
981 #: debian-trixie
982 #, no-wrap
983 msgid "B<FAN_REPORT_PIDFD> (since Linux 5.15)"
984 msgstr ""
985
986 #. commit 7cea2a3c505e87a9d6afc78be4a7f7be636a73a7
987 #. commit 7cea2a3c505e87a9d6afc78be4a7f7be636a73a7
988 #. type: Plain text
989 #: debian-trixie
990 msgid ""
991 "Prior to Linux 5.13, calling B<fanotify_init>() required the "
992 "B<CAP_SYS_ADMIN> capability. Since Linux 5.13, users may call "
993 "B<fanotify_init>() without the B<CAP_SYS_ADMIN> capability to create and "
994 "initialize an fanotify group with limited functionality."
995 msgstr ""
996
997 #. type: TH
998 #: fedora-44 fedora-rawhide
999 #, no-wrap
1000 msgid "2024-07-23"
1001 msgstr ""
1002
1003 #. type: TH
1004 #: fedora-44 fedora-rawhide
1005 #, no-wrap
1006 msgid "Linux man-pages 6.13"
1007 msgstr ""
1008
1009 #. type: TH
1010 #: mageia-cauldron
1011 #, no-wrap
1012 msgid "Linux man-pages 6.17"
1013 msgstr ""
1014
1015 #. type: TH
1016 #: opensuse-leap-16-1 opensuse-tumbleweed
1017 #, no-wrap
1018 msgid "Linux man-pages (unreleased)"
1019 msgstr ""