]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Import dlpam_sterror symbol.
authorVMware, Inc <>
Mon, 26 Sep 2011 19:59:51 +0000 (12:59 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Sep 2011 19:59:51 +0000 (12:59 -0700)
When the user executes any guest operation with invalid login
credentials, vmtoolsd process crashes [Signal 11, Segmentation fault].
Got the stack trace and found out that the crash happens in
Auth_AuthenticateUser() function. dlpam_strerror symbol is not loaded
from the PAM library but is referenced. This causes the crash.

Modified the code to import the dlpam_sterror symbol.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/auth/authPosix.c

index f4e773e177c0b2df1916a5ba6b94f23334b8e343..b1fdc2c8c3fa7ed5d9d22da65125442f8bd9a2a4 100644 (file)
@@ -81,6 +81,7 @@ static struct {
    IMPORT_SYMBOL(pam_authenticate),
    IMPORT_SYMBOL(pam_setcred),
    IMPORT_SYMBOL(pam_acct_mgmt),
+   IMPORT_SYMBOL(pam_strerror),
 #undef IMPORT_SYMBOL
 };