Skip to content

Commit 59b7dad

Browse files
committed
Disable FAN_FS_ERROR for release
Keep FAN_FS_ERROR support disabled unconditionally by leaving FAPOLICYD_ENABLE_FANOTIFY_FS_ERROR undefined. The previous configure option is commented out for later restoration, configure reports FAN_FS_ERROR monitoring as no, and the ChangeLog entry advertising FAN_FS_ERROR support was removed from the release notes.
1 parent eb4ca88 commit 59b7dad

3 files changed

Lines changed: 20 additions & 18 deletions

File tree

ChangeLog

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- Add per-rule hit counters state report to improve observability.
1919
- Add per-attribute cache hit and lookup counters to improve observability.
2020
- Split CLI state and metrics reports
21-
- fapolicyd: Handle FAN_FS_ERROR health events
2221

2322
1.4.5
2423
- Inform the admin symlinks were skipped when adding paths

configure.ac

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,22 +151,25 @@ if test $perm = "no"; then
151151
fi
152152
AC_CHECK_DECLS([FAN_MARK_FILESYSTEM], [], [], [[#include <linux/fanotify.h>]])
153153

154-
AC_ARG_ENABLE(fanotify-fs-error,
155-
AS_HELP_STRING([--disable-fanotify-fs-error],
156-
[disable FAN_FS_ERROR health monitoring even when supported]),
157-
[enable_fanotify_fs_error=$enableval],
158-
[enable_fanotify_fs_error=yes])
159-
case x$enable_fanotify_fs_error in
160-
xyes)
161-
AC_DEFINE([FAPOLICYD_ENABLE_FANOTIFY_FS_ERROR], [1],
162-
[Define to enable FAN_FS_ERROR health monitoring])
163-
;;
164-
xno)
165-
;;
166-
*)
167-
AC_MSG_ERROR([bad value $enableval for --enable-fanotify-fs-error])
168-
;;
169-
esac
154+
enable_fanotify_fs_error=no
155+
dnl FAN_FS_ERROR shutdown currently exposes a kernel close(2) hang. Keep the
156+
dnl monitor compiled out until the kernel problem is understood.
157+
dnl AC_ARG_ENABLE(fanotify-fs-error,
158+
dnl AS_HELP_STRING([--disable-fanotify-fs-error],
159+
dnl [disable FAN_FS_ERROR health monitoring even when supported]),
160+
dnl [enable_fanotify_fs_error=$enableval],
161+
dnl [enable_fanotify_fs_error=yes])
162+
dnl case x$enable_fanotify_fs_error in
163+
dnl xyes)
164+
dnl AC_DEFINE([FAPOLICYD_ENABLE_FANOTIFY_FS_ERROR], [1],
165+
dnl [Define to enable FAN_FS_ERROR health monitoring])
166+
dnl ;;
167+
dnl xno)
168+
dnl ;;
169+
dnl *)
170+
dnl AC_MSG_ERROR([bad value $enableval for --enable-fanotify-fs-error])
171+
dnl ;;
172+
dnl esac
170173

171174
withval=""
172175
AC_ARG_WITH(rpm,

src/daemon/fanotify-fs-error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ int fanotify_fs_error_init(mlist *m)
606606
"the required fanotify info records");
607607
#else
608608
msg(LOG_INFO,
609-
"FAN_FS_ERROR monitoring disabled by configure option");
609+
"FAN_FS_ERROR monitoring disabled");
610610
#endif
611611
return -1;
612612
}

0 commit comments

Comments
 (0)