Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
# complexity = low
# disruption = low

PKCSSW=$(/usr/bin/pkcs11-switch)
PKCSSW="/usr/bin/pkcs11-switch"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script is in the opensc package so if the package is not installed the remediation will do result in error.

@ggbecker do you think that installing the opensc package in this remediation is a good idea? Installation of opensc feels like a different rule, however without the package we can't perform remediation of this one.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mildas Probably yes, Imagine that somebody will update the rule in the future and this test will be executed by the CTF.

MODULE=$(${PKCSSW})

if [ ${PKCSSW} != "opensc" ] ; then
${PKCSSW} opensc
if [ "$MODULE" != "opensc" ] ; then
echo | ${PKCSSW} opensc
fi

modutil -force -add opensc -dbdir sql:/etc/pki/nssdb -libfile opensc-pkcs11.so