Blob Blame History Raw
From 0df80531afcfe73d0025dac31f259bdf38c37cc0 Mon Sep 17 00:00:00 2001
From: Vojtech Polasek <vpolasek@redhat.com>
Date: Tue, 1 Dec 2020 13:48:37 +0100
Subject: [PATCH] fix wrong rule name in oval and change platform to machine

---
 .../bootloader-grub2/grub2_kernel_trust_cpu_rng/oval/shared.xml | 2 +-
 .../system/bootloader-grub2/grub2_kernel_trust_cpu_rng/rule.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/oval/shared.xml b/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/oval/shared.xml
index a3e9b616a3..8d7197faed 100644
--- a/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/oval/shared.xml
+++ b/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/oval/shared.xml
@@ -1,5 +1,5 @@
 <def-group>
-  <definition class="compliance" id="kernel_trust_cpu_rng" version="1">
+  <definition class="compliance" id="grub2_kernel_trust_cpu_rng" version="1">
     {{{ oval_metadata("Ensure the kernel is configured to trust the CPU hardware random number generator.") }}}
     <criteria operator="OR" >
       <criteria operator="AND">
diff --git a/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/rule.yml b/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/rule.yml
index 3df57621a3..89ffe074e0 100644
--- a/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/rule.yml
+++ b/linux_os/guide/system/bootloader-grub2/grub2_kernel_trust_cpu_rng/rule.yml
@@ -49,7 +49,7 @@ ocil: |-
     If the command does not return any output, then the boot parameter is
     missing.
 
-platform: grub2
+platform: machine
 
 template:
     name: grub2_bootloader_argument