]> granicus.if.org Git - sudo/commitdiff
Make dynamic shared objects non-writable on HP-UX. Using writable
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Jul 2014 16:03:47 +0000 (10:03 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Jul 2014 16:03:47 +0000 (10:03 -0600)
DSOs can substantially increase the load time.

configure
configure.ac

index 8aba39fda5f652d009c112828e7dc77f847f9eec..383cfa0119d3529b61d801c367e066a83a30b804 100755 (executable)
--- a/configure
+++ b/configure
@@ -14382,8 +14382,9 @@ done
                INIT_DIR=/sbin/init.d
                RC_LINK=/sbin/rc2.d/S900sudo
 
-               # HP-UX shared libs must be executable
-               SHLIB_MODE=0755
+               # HP-UX shared libs must be executable.
+               # Load time is much greater if writable so use 0555.
+               SHLIB_MODE=0555
 
                for ac_func in pstat_getproc
 do :
@@ -14410,8 +14411,9 @@ done
                INIT_DIR=/sbin/init.d
                RC_LINK=/sbin/rc2.d/S900sudo
 
-               # HP-UX shared libs must be executable
-               SHLIB_MODE=0755
+               # HP-UX shared libs must be executable.
+               # Load time is much greater if writable so use 0555.
+               SHLIB_MODE=0555
 
                # The HP bundled compiler cannot generate shared libs
                if test -z "$GCC"; then
index 240e69523e8216a23cc3c229bb515560ccfc6060..274a2f7536ba8be3958e1e6da27e4d2088e48ac4 100644 (file)
@@ -1712,8 +1712,9 @@ case "$host" in
                INIT_DIR=/sbin/init.d
                RC_LINK=/sbin/rc2.d/S900sudo
 
-               # HP-UX shared libs must be executable
-               SHLIB_MODE=0755
+               # HP-UX shared libs must be executable.
+               # Load time is much greater if writable so use 0555.
+               SHLIB_MODE=0555
 
                AC_CHECK_FUNCS(pstat_getproc)
                ;;
@@ -1730,8 +1731,9 @@ case "$host" in
                INIT_DIR=/sbin/init.d
                RC_LINK=/sbin/rc2.d/S900sudo
 
-               # HP-UX shared libs must be executable
-               SHLIB_MODE=0755
+               # HP-UX shared libs must be executable.
+               # Load time is much greater if writable so use 0555.
+               SHLIB_MODE=0555
 
                # The HP bundled compiler cannot generate shared libs
                if test -z "$GCC"; then