Allow runtime configuration of pkcs11 modules through config file

Bug #1968175 reported by Ondrej Kubik
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libp11 (Ubuntu)
Invalid
Undecided
Unassigned
opensc (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

[Impact]

 * To be able to switch modules at runtime via configuration file change the default module from opensc-pkcs11 to p11-proxy module, which by default loads opensc-pkcs11 module unless configured by administrator to use something else.

 * This also allows configuration where multiple modules can be used together through the p11-proxy module.

 * This aligns Ubuntu closer with other distributions, and allows using the same builds of opensc in embedded configurations on Ubuntu Core with specialized modules

[Test Plan]

 * detailed instructions how to reproduce the bug

 * these should allow someone who is not familiar with the affected
   package to reproduce the bug and verify that the updated package fixes
   the problem.

 * if other testing is appropriate to perform before landing this update,
   this should also be described here.

[Where problems could occur]

 * Think about what the upload changes in the software. Imagine the change is
   wrong or breaks something else: how would this show up?

 * It is assumed that any SRU candidate patch is well-tested before
   upload and has a low overall risk of regression, but it's important
   to make the effort to think about what ''could'' happen in the
   event of a regression.

 * This must '''never''' be "None" or "Low", or entirely an argument as to why
   your upload is low risk.

 * This both shows the SRU team that the risks have been considered,
   and provides guidance to testers in regression-testing the SRU.

[Other Info]

 * Anything else you think is useful to include
 * Anticipate questions from users, SRU, +1 maintenance, security teams and the Technical Board
 * and address these questions in advance

Revision history for this message
Ondrej Kubik (ondrak) wrote :
Revision history for this message
Ondrej Kubik (ondrak) wrote (last edit ):
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libp11 (Ubuntu):
status: New → Confirmed
Changed in opensc (Ubuntu):
status: New → Confirmed
description: updated
Changed in opensc (Ubuntu):
status: Confirmed → Incomplete
Changed in libp11 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Changed in libp11 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I see that in Fedora opensc provides a p11kit module to allow using opensc-pkcs11.so via p11-kit's proxy module https://src.fedoraproject.org/rpms/opensc/blob/rawhide/f/opensc.module

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

In other distributions opensc by default is configured to use:

PKCS11 default provider: /usr/lib64/opensc-pkcs11.so
PKCS11 onepin provider: /usr/lib64/onepin-opensc-pkcs11.so

which we do on Ubuntu as well, but with multiarch paths.

However, I see that other distributions ship .module files to allow using opensc-pkcs11 via p11-kit proxy.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for opensc (Ubuntu) because there has been no activity for 60 days.]

Changed in opensc (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.