From: Todd C. Miller Date: Sat, 20 Mar 2010 00:01:00 +0000 (-0400) Subject: Bring back SUDOERS_PLUGIN but add .dylib -> .so conversion for X-Git-Tag: SUDO_1_8_0~782 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e27226a0d98b5267cde578d80c781dbcf1bb57e;p=sudo Bring back SUDOERS_PLUGIN but add .dylib -> .so conversion for Darwin where libraries end in .dylib but modules end in .so --- diff --git a/config.h.in b/config.h.in index 586753a8c..01a26bffb 100644 --- a/config.h.in +++ b/config.h.in @@ -25,6 +25,9 @@ /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA +/* The name of the sudoers plugin, including extension. */ +#undef SUDOERS_PLUGIN + /* Define to 1 if you want sudo to display "command not allowed" instead of "command not found" when a command cannot be found. */ #undef DONT_LEAK_PATH_INFO diff --git a/configure b/configure index 2857e6a90..2dacaad42 100755 --- a/configure +++ b/configure @@ -11989,6 +11989,12 @@ if test "$enable_shared" = "no"; then with_noexec=no else eval _shrext="$shrext_cmds" + # Darwin uses .dylib for libraries but .so for modules + if test X"$_shrext" = X".dylib"; then + _shrext2=".so" + else + _shrext2="$_shrext" + fi fi { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; } @@ -26288,6 +26294,10 @@ _ACEOF eval PLUGINDIR="$with_plugindir" cat >>confdefs.h <>confdefs.h <symbol_name = "sudoers_policy"; - info->path = "sudoers.so"; + info->path = SUDOERS_PLUGIN; info->prev = info; info->next = NULL; tq_append(&pil, info);