]> granicus.if.org Git - sudo/commitdiff
Disable noexec for AIX < 5. LDR_PRELOAD is only available in AIX
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 5 Jul 2011 15:42:39 +0000 (11:42 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 5 Jul 2011 15:42:39 +0000 (11:42 -0400)
5.3 and above.

configure
configure.in

index d814ae3b37defa3f8273731a834aed830c766aec..256aab17582e2583c8b05fc459591200cce871bb 100755 (executable)
--- a/configure
+++ b/configure
                    with_netsvc="/etc/netsvc.conf"
                fi
 
+               # LDR_PRELOAD is supported in AIX 5.3 and later
+               case "$OSREV" in
+                   1-4.*) with_noexec=no ;;
+               esac
+
                # AIX-specific functions
                for ac_func in getuserattr setauthdb
 do :
index 5d9990e3ae51b993741f0c8441d20ba3459f5e7c..cc5018dd8a19cf214a86798c0e5419bdee8ffb07 100644 (file)
@@ -1528,6 +1528,11 @@ case "$host" in
                    with_netsvc="/etc/netsvc.conf"
                fi
 
+               # LDR_PRELOAD is supported in AIX 5.3 and later
+               case "$OSREV" in
+                   [1-4].*) with_noexec=no ;;
+               esac
+
                # AIX-specific functions
                AC_CHECK_FUNCS(getuserattr setauthdb)
                COMMON_OBJS="$COMMON_OBJS aix.lo"