From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 3 17:00:27 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 748BC1065693 for ; Tue, 3 Apr 2012 17:00:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E595B8FC21 for ; Tue, 3 Apr 2012 17:00:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q33H09Vj042418 for ; Tue, 3 Apr 2012 17:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q33H09pX042417; Tue, 3 Apr 2012 17:00:09 GMT (envelope-from gnats) Resent-Date: Tue, 3 Apr 2012 17:00:09 GMT Resent-Message-Id: <201204031700.q33H09pX042417@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Landon Fuller Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 227C5106567E for ; Tue, 3 Apr 2012 16:59:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 0E4C58FC1C for ; Tue, 3 Apr 2012 16:59:03 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q33Gx2ng029898 for ; Tue, 3 Apr 2012 16:59:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q33Gx2sB029897; Tue, 3 Apr 2012 16:59:02 GMT (envelope-from nobody) Message-Id: <201204031659.q33Gx2sB029897@red.freebsd.org> Date: Tue, 3 Apr 2012 16:59:02 GMT From: Landon Fuller To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/166614: [PATCH] VBoxAuthPAM.c references non-existent pam.so.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2012 17:00:27 -0000 >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: