Bugzilla Bug 351482: fail if some of the needed functions don't exist.

r=glen.beasley,relyea.
This commit is contained in:
wtchang%redhat.com 2006-10-02 22:04:33 +00:00
parent a9b680accd
commit 73f3b25c8c

View File

@ -108,6 +108,15 @@ libaudit_init(void)
audit_send_user_message_func = dlsym(libaudit_handle,
"audit_send_user_message");
}
if (!audit_open_func || !audit_close_func ||
(!audit_log_user_message_func && !audit_send_user_message_func)) {
dlclose(libaudit_handle);
libaudit_handle = NULL;
audit_open_func = NULL;
audit_close_func = NULL;
audit_log_user_message_func = NULL;
audit_send_user_message_func = NULL;
}
}
#endif /* LINUX */