From owner-freebsd-ports-bugs@freebsd.org Fri Aug 4 01:13:13 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDEBADBC117 for ; Fri, 4 Aug 2017 01:13:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC2DB73608 for ; Fri, 4 Aug 2017 01:13:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v741DCln036249 for ; Fri, 4 Aug 2017 01:13:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221212] security/softhsm2 uses hard-coded data-directories Date: Fri, 04 Aug 2017 01:13:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dewayne@heuristicsystems.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2017 01:13:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221212 Bug ID: 221212 Summary: security/softhsm2 uses hard-coded data-directories Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: dewayne@heuristicsystems.com.au CC: jaap@NLnetLabs.nl Flags: maintainer-feedback?(jaap@NLnetLabs.nl) CC: jaap@NLnetLabs.nl Thank-you for upgrading softhsm2. Without changing anything, the software functions on FreeBSD 11.1Stable for both i386 and amd64. However if the directories.tokendir changes from the default in softhsm2.co= nf, this results on both platforms: # softhsm2-util --init-token --free --label "Cute label" --so-pin abcdef --= pin 123456 ERROR: Could not initialize the PKCS#11 library/module: /usr/local/lib/softhsm/libsofthsm2.so ERROR: Please check log files for additional information. (Aside: there was no logging information) In our case we prefer directories.tokendir =3D /var/lib/softhsm/tokens/ We tried changes in the Makefile around STATE_DIR?=3D /var # Previously /usr/local/v= ar TOKEN_DIR?=3D ${STATE_DIR}/lib/softhsm/tokens # Used in pkg-plist CONFIGURE_ARGS+=3D --datarootdir=3D${TOKEN_DIR} --localstatedir=3D${= STATE_DIR} but were unsuccessful. Why it matters? Once built and functional /usr is mounted read-only. --=20 You are receiving this mail because: You are the assignee for the bug.=