From: VMware, Inc <> Date: Mon, 26 Sep 2011 19:59:51 +0000 (-0700) Subject: Import dlpam_sterror symbol. X-Git-Tag: 2011.09.23-491607~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bd57a8bb954902a8ab2d23439ea04dc6cd2dd54;p=thirdparty%2Fopen-vm-tools.git Import dlpam_sterror symbol. 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 --- diff --git a/open-vm-tools/lib/auth/authPosix.c b/open-vm-tools/lib/auth/authPosix.c index f4e773e17..b1fdc2c8c 100644 --- a/open-vm-tools/lib/auth/authPosix.c +++ b/open-vm-tools/lib/auth/authPosix.c @@ -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 };