]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux-allow-disabling-syscall-probing-20090602
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 2 Jun 2009 19:31:45 +0000 (19:31 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 2 Jun 2009 19:31:45 +0000 (19:31 +0000)
LICENSE IPL10

give a configure switch to allow disabling syscall probing

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

index 3b18a4541481145e9e8be81c8f28c2b1cc6d54ce..9646ef640f46e71e19fe9501aee2c3f08e793ce3 100644 (file)
@@ -299,6 +299,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 597ca90ea89d33f119238ec93ad1214591479a3d..02bd9fd5259f0b20b6c81d15f2b97a5e6590fbfd 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