Fix remediation for rule configure_opensc_nss_db#4776
Closed
ggbecker wants to merge 2 commits intoComplianceAsCode:masterfrom
Closed
Fix remediation for rule configure_opensc_nss_db#4776ggbecker wants to merge 2 commits intoComplianceAsCode:masterfrom
ggbecker wants to merge 2 commits intoComplianceAsCode:masterfrom
Conversation
ggbecker
commented
Aug 30, 2019
| ${PKCSSW} opensc | ||
| fi | ||
| modutil -delete "CoolKey PKCS #11 Module" -dbdir sql:/etc/pki/nssdb/ -force || true # ignore errors | ||
| modutil -add "OpenSC PKCS #11 Module" -dbdir sql:/etc/pki/nssdb/ -libfile opensc-pkcs11.so -force |
Member
Author
There was a problem hiding this comment.
It might need some kind of condition to test if it is already setup correctly.
6cbd0bf to
7b6a2d8
Compare
pkcs11-switch tool changes the old database format, but our OVAL check looks for sql database files (/etc/pki/nssdb/pkcs11.txt), so calling modutil with proper parameters should have the same effect.
7b6a2d8 to
56d2559
Compare
Member
|
Removing milestone assignment, as this is still in draft. |
Collaborator
|
Can one of the admins verify this patch? |
Member
|
@ggbecker closing this as abandoned PR. Feel free to re-open if you find the time in the future! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Aims to move away from
pkcs11-switchtool as it may not configure the way our OVAL check for this particular rule works. The OVAL check looks for content in file/etc/pki/nssdb/pkcs11.txtwhich is only modified when usingmodutil -dbdir sql:/etc/pki/nssdb/ ...(notice the prefixsql:).Also the rule got removed from RHEL8 because in RHEL8 there is no coolkey and it seems to be already configured to use
opensclibrary by default. Update1: source: https://access.redhat.com/articles/4253861 (See sections:Smart cards in Firefox browser or ThunderbirdandRegister third party PKCS #11 module to p11-kit)Rationale:
Additional info:
There are still some uncertainty on how this databases works, but so far they way is proposed it seems to work.