8.4. 特定のベースラインに合わせたシステムの修復
				この手順を使用して、特定のベースラインに合わせて RHEL 7 システムを修正します。この例では、OSPP (Protection Profile for General Purpose Operating Systems) の保護プロファイルを使用します。
			
警告
Remediate オプションを有効にしてシステム評価を慎重に実行しないと、システムが機能しなくなることがあります。Red Hat は、セキュリティーを強化した修正で加えられた変更を元に戻す自動手段は提供していません。修復は、デフォルト設定の RHEL システムで対応しています。インストール後にシステムが変更した場合は、修正を実行しても、必要なセキュリティープロファイルに準拠しない場合があります。
				前提条件
- RHEL 7 システムに、scap-security-guide パッケージがインストールされている。
 
手順
oscapコマンドに--remediateオプションを指定して使用します。sudo oscap xccdf eval --profile ospp --remediate /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
~]$ sudo oscap xccdf eval --profile ospp --remediate /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow - システムを再起動します。
 
検証
- システムの OSPP プロファイルへのコンプライアンスを評価し、スキャン結果を
ospp_report.htmlファイルに保存します。oscap xccdf eval --report ospp_report.html --profile ospp /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
~]$ oscap xccdf eval --report ospp_report.html --profile ospp /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow  
関連情報
scap-security-guide (8)およびoscap (8)のman ページ