]> 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>
Sat, 13 Aug 2011 17:36:37 +0000 (13:36 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 13 Aug 2011 17:36:37 +0000 (13:36 -0400)
5.3 and above.

--HG--
branch : 1.7

configure
configure.in

index 4b52b4ec18314b51c86d728a4cf0a29106471174..b8f7e231792eeb39a6e3554348d99d8504d8b8a6 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 aa9d8aa2bc8d35ddf58cb3a9e7333aa0a7771e82..ae0c47b51616c9097e3320c612f2f767d831e6a3 100644 (file)
@@ -1486,6 +1486,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.o"