From bfaac3332c7e06b4252746f6da514fd44e74b0e6 Mon Sep 17 00:00:00 2001 From: Jan Lieskovsky Date: Wed, 10 Aug 2016 15:47:58 +0200 Subject: [PATCH] [BugFix] [RHEL/7] Rewrite RHEL-7 remediation for 'smartcard_auth' rule since per downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1357019 we can't use 'authconfig' binary direct call, because it will discard the changes as performed and required by other remediation scripts also touching /etc/pam.d/system-auth{,-ac} file Therefore return to previous version updating necessary files directly via 'sed' tool (rather than using 'authconfig' binary) Note: While on the rule also update XCCDF link providing further info how to setup smartcard auth (since the current one returns HTTP 404 Not Found) --- RHEL/7/input/xccdf/system/accounts/physical.xml | 2 +- RHEL/7/input/remediations/bash/smartcard_auth.sh | 61 +++++++++++++++++++++++-- 2 files changed, 58 insertions(+), 5 deletions(-) diff --git a/RHEL/7/input/xccdf/system/accounts/physical.xml b/RHEL/7/input/xccdf/system/accounts/physical.xml index b3ac250..d229469 100644 --- a/RHEL/7/input/xccdf/system/accounts/physical.xml +++ b/RHEL/7/input/xccdf/system/accounts/physical.xml @@ -375,7 +375,7 @@ is not enabled by default and must be enabled in the system settings. To enable smart card authentication, consult the documentation at: For guidance on enabling SSH to authenticate against a Common Access Card (CAC), consult documentation at: