Add dlopen() emulation for systems without it.

For HP-UX 10, emulate using shl_load().
For others, link sudoers plugin statically and use a lookup
table to emulate dlsym().
This commit is contained in:
Todd C. Miller
2010-09-26 17:41:35 -04:00
parent b0b57fbef9
commit f538ed4e35
16 changed files with 353 additions and 41 deletions

View File

@@ -150,7 +150,7 @@ int NewArgc;
char **NewArgv;
/* error.c */
extern sigjmp_buf error_jmp;
sigjmp_buf error_jmp;
static int
sudoers_policy_open(unsigned int version, sudo_conv_t conversation,
@@ -1117,7 +1117,7 @@ set_runasgr(char *group)
* Cleanup hook for error()/errorx()
*/
void
cleanup(int gotsignal)
plugin_cleanup(int gotsignal)
{
struct sudo_nss *nss;