Description: Fix starting of inotify when kernel dbg package isn't installed
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 maldetect (1.6.4-1~eebpo110+2) bullseye-ee; urgency=medium
 .
   * Fix starting of inotify when kernel dbg package isn't installed
Author: Emmanuel Lacour <elacour@easter-eggs.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2023-05-24

--- maldetect-1.6.4.orig/files/internals/functions
+++ maldetect-1.6.4/files/internals/functions
@@ -1629,13 +1629,7 @@ monitor_init() {
 		exit
 	fi
 	
-	if [ -f "/boot/System.map-$(uname -r)" ]; then
-		ksup=`grep -i inotify_ /boot/System.map-$(uname -r)`
-		if [ -z "$ksup" ]; then
-			eout "{mon} kernel does not support inotify(), aborting." 1
-			exit
-		fi
-	elif [ -f "/boot/config-$(uname -r)" ]; then
+	if [ -f "/boot/config-$(uname -r)" ]; then
 		ksup=`grep -m1 CONFIG_INOTIFY /boot/config-$(uname -r)`
 		if [ -z "$ksup" ]; then
 			eout "{mon} kernel does not support inotify(), aborting." 1
