Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2012 16:59:02 GMT
From:      Landon Fuller <landonf@plausible.coop>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/166614: [PATCH] VBoxAuthPAM.c references non-existent pam.so.0
Message-ID:  <201204031659.q33Gx2sB029897@red.freebsd.org>
Resent-Message-ID: <201204031700.q33H09pX042417@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166614
>Category:       ports
>Synopsis:       [PATCH] VBoxAuthPAM.c references non-existent pam.so.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 03 17:00:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Landon Fuller
>Release:        FreeBSD-9
>Organization:
Plausible Labs Cooperative, Inc.
>Environment:
FreeBSD virtual1. 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The VBoxAuthPAM.c implementation attempts to dlopen() PAM, but uses the non-existent "pam.so.0" path. Attached is a small patch to be included with the port -- it simply uses "pam.so" when defined(RT_OS_FREEBSD).

Test result without fix (using VBOX_AUTH_DEBUG_FILENAME):

u[vboxusers], d[(null)], p[40]
auth_pam_init: dlopen libpam.so.0 failed
auth_pam_init failed 4

Test after fix:

u[vboxusers], d[(null)], p[40]
init ok
Using PAM service: login
start ok
auth ok
access granted
auth_pam_close completed
>How-To-Repeat:
Attempt to authenticate against a virtualbox service, such as vboxwebsrv. PAM-based authentication will fail.
>Fix:
Apply the provided patch to the port.

Patch attached with submission follows:

--- src/VBox/HostServices/auth/pam/VBoxAuthPAM.c.orig	2012-04-03 12:44:41.841214284 -0400
+++ src/VBox/HostServices/auth/pam/VBoxAuthPAM.c	2012-04-03 12:47:04.830215881 -0400
@@ -62,6 +62,8 @@
 /* The name of the PAM library */
 # ifdef RT_OS_SOLARIS
 #  define PAM_LIB_NAME "libpam.so.1"
+# elif defined(RT_OS_FREEBSD)
+#  define PAM_LIB_NAME "libpam.so"
 # else
 #  define PAM_LIB_NAME "libpam.so.0"
 # endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204031659.q33Gx2sB029897>