DEVEL15-linux-allow-disabling-syscall-probing-20090602
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 2 Jun 2009 19:31:57 +0000 (19:31 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 2 Jun 2009 19:31:57 +0000 (19:31 +0000)
LICENSE IPL10

give a configure switch to allow disabling syscall probing

(cherry picked from commit 091139b3e2160e1f56b11820d59589de9ccd9c40)

acinclude.m4
src/afs/LINUX/osi_probe.c

index 72f9d4e..4f3ba51 100644 (file)
@@ -304,6 +304,13 @@ AC_ARG_ENABLE([optimize-pam],
          enabled)])],
     ,
     [enable_optimize_pam="yes"])
+AC_ARG_ENABLE([linux-syscall-probing],
+    [AS_HELP_STRING([--disable-linux-syscall-probing],
+       [disabling Linux syscall probing (defaults to enabled)])],
+    ,
+    [AC_DEFINE(ENABLE_LINUX_SYSCALL_PROBING, 1, 
+       [define to enable syscall table probes])])
+    
 
 AC_ARG_WITH([xslt-processor],
        AS_HELP_STRING([--with-xslt-processor=ARG],
index 597ca90..02bd9fd 100644 (file)
@@ -52,7 +52,7 @@
 #include <afsconfig.h>
 #include "afs/param.h"
 #endif
-#if defined(EXPORTED_INIT_MM)
+#if defined(ENABLE_LINUX_SYSCALL_PROBING) && defined(EXPORTED_INIT_MM)
 #ifdef AFS_LINUX24_ENV
 #include <linux/module.h> /* early to avoid printf->printk mapping */
 #ifdef AFS_LINUX26_ENV