From: Todd C. Miller Date: Mon, 14 Nov 2016 18:00:43 +0000 (-0700) Subject: Don't enable noexec for AIX 5.0-5.2, we need 5.3 and above. X-Git-Tag: SUDO_1_8_19^2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60bf1394517e4d06a37c8b76ee4a65dcef07285b;p=sudo Don't enable noexec for AIX 5.0-5.2, we need 5.3 and above. --- diff --git a/configure b/configure index 08e821cce..8be0338ad 100755 --- a/configure +++ b/configure @@ -14882,11 +14882,11 @@ fi fi # LDR_PRELOAD is only supported in AIX 5.3 and later - if test $OSMAJOR -lt 5; then - with_noexec=no - else - RTLD_PRELOAD_VAR="LDR_PRELOAD" - fi + case "$OSREV" in + [1-4].*) with_noexec=no;; + 5.[1-2]*) with_noexec=no;; + *) RTLD_PRELOAD_VAR="LDR_PRELOAD";; + esac # Remove timedir on boot, AIX does not have /var/run INIT_SCRIPT=aix.sh diff --git a/configure.ac b/configure.ac index 45a6f5fe2..438d25cf8 100644 --- a/configure.ac +++ b/configure.ac @@ -1737,11 +1737,11 @@ case "$host" in fi # LDR_PRELOAD is only supported in AIX 5.3 and later - if test $OSMAJOR -lt 5; then - with_noexec=no - else - RTLD_PRELOAD_VAR="LDR_PRELOAD" - fi + case "$OSREV" in + [[1-4]].*) with_noexec=no;; + 5.[[1-2]]*) with_noexec=no;; + *) RTLD_PRELOAD_VAR="LDR_PRELOAD";; + esac # Remove timedir on boot, AIX does not have /var/run INIT_SCRIPT=aix.sh