From: Michael Kerrisk Date: Mon, 4 Jan 2021 13:26:08 +0000 (+0100) Subject: fanotify_init.2, fanotify.7: Minor edits to Jan Kara's patch X-Git-Tag: man-pages-5.11~388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d187835fe73554316222bf4d91eeaed995aaeef4;p=thirdparty%2Fman-pages.git fanotify_init.2, fanotify.7: Minor edits to Jan Kara's patch Signed-off-by: Michael Kerrisk --- diff --git a/man2/fanotify_init.2 b/man2/fanotify_init.2 index 13538912b9..f0ad402bee 100644 --- a/man2/fanotify_init.2 +++ b/man2/fanotify_init.2 @@ -159,9 +159,10 @@ supplied to .BR FAN_ENABLE_AUDIT " (since Linux 4.15)" .\" commit de8cd83e91bc3ee212b3e6ec6e4283af9e4ab269 Enable generation of audit log records about access mediation performed by -permission events. The permission event response has to be marked with +permission events. +The permission event response has to be marked with the .B FAN_AUDIT -flag for audit log record to be generated. +flag for an audit log record to be generated. .TP .BR FAN_REPORT_FID " (since Linux 5.1)" .\" commit a8b13aa20afb69161b5123b4f1acc7ea0a03d360 diff --git a/man7/fanotify.7 b/man7/fanotify.7 index d5bf6d9877..56d940af71 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -588,13 +588,15 @@ to deny the file operation. .PP If access is denied, the requesting application call will receive an .BR EPERM -error. Additionally, if the notification group has been created with +error. +Additionally, if the notification group has been created with the .B FAN_ENABLE_AUDIT -flag, +flag, then the .B FAN_AUDIT flag can be set in the .I response -field. In that case audit subsystem will log information about the access +field. +In that case, the audit subsystem will log information about the access decision to the audit logs. .\" .SS Closing the fanotify file descriptor