Blame SOURCES/scap-security-guide-0.1.64-apply_partition_platform_to_rules-PR_9324.patch

792d3d
From 51d7ee352dd2e90cb711d949cc59fb36c7fbe5da Mon Sep 17 00:00:00 2001
792d3d
From: Matej Tyc <matyc@redhat.com>
792d3d
Date: Wed, 10 Aug 2022 13:35:50 +0200
792d3d
Subject: [PATCH] Add the platform applicability to relevant rules
792d3d
792d3d
---
792d3d
 .../permissions/partitions/mount_option_tmp_nodev/rule.yml      | 2 +-
792d3d
 .../permissions/partitions/mount_option_tmp_noexec/rule.yml     | 2 +-
792d3d
 .../permissions/partitions/mount_option_tmp_nosuid/rule.yml     | 2 +-
792d3d
 .../permissions/partitions/mount_option_var_tmp_bind/rule.yml   | 2 +-
792d3d
 .../permissions/partitions/mount_option_var_tmp_noexec/rule.yml | 2 +-
792d3d
 .../permissions/partitions/mount_option_var_tmp_nosuid/rule.yml | 2 +-
792d3d
 6 files changed, 6 insertions(+), 6 deletions(-)
792d3d
792d3d
diff --git a/linux_os/guide/system/permissions/partitions/mount_option_tmp_nodev/rule.yml b/linux_os/guide/system/permissions/partitions/mount_option_tmp_nodev/rule.yml
792d3d
index 45a73e0286a..79a19a8d30b 100644
792d3d
--- a/linux_os/guide/system/permissions/partitions/mount_option_tmp_nodev/rule.yml
792d3d
+++ b/linux_os/guide/system/permissions/partitions/mount_option_tmp_nodev/rule.yml
792d3d
@@ -45,7 +45,7 @@ references:
792d3d
     stigid@ol8: OL08-00-040123
792d3d
     stigid@rhel8: RHEL-08-040123
792d3d
 
792d3d
-platform: machine
792d3d
+platform: machine and partition-tmp
792d3d
 
792d3d
 template:
792d3d
     name: mount_option
792d3d
diff --git a/linux_os/guide/system/permissions/partitions/mount_option_tmp_noexec/rule.yml b/linux_os/guide/system/permissions/partitions/mount_option_tmp_noexec/rule.yml
792d3d
index 7356183bab3..d3f6d6175e5 100644
792d3d
--- a/linux_os/guide/system/permissions/partitions/mount_option_tmp_noexec/rule.yml
792d3d
+++ b/linux_os/guide/system/permissions/partitions/mount_option_tmp_noexec/rule.yml
792d3d
@@ -44,7 +44,7 @@ references:
792d3d
     stigid@ol8: OL08-00-040125
792d3d
     stigid@rhel8: RHEL-08-040125
792d3d
 
792d3d
-platform: machine
792d3d
+platform: machine and partition-tmp
792d3d
 
792d3d
 template:
792d3d
     name: mount_option
792d3d
diff --git a/linux_os/guide/system/permissions/partitions/mount_option_tmp_nosuid/rule.yml b/linux_os/guide/system/permissions/partitions/mount_option_tmp_nosuid/rule.yml
792d3d
index d153b86934f..10790dc95a7 100644
792d3d
--- a/linux_os/guide/system/permissions/partitions/mount_option_tmp_nosuid/rule.yml
792d3d
+++ b/linux_os/guide/system/permissions/partitions/mount_option_tmp_nosuid/rule.yml
792d3d
@@ -45,7 +45,7 @@ references:
792d3d
     stigid@ol8: OL08-00-040124
792d3d
     stigid@rhel8: RHEL-08-040124
792d3d
 
792d3d
-platform: machine
792d3d
+platform: machine and partition-tmp
792d3d
 
792d3d
 template:
792d3d
     name: mount_option
792d3d
diff --git a/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_bind/rule.yml b/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_bind/rule.yml
792d3d
index 133e7727ca7..05992df4b49 100644
792d3d
--- a/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_bind/rule.yml
792d3d
+++ b/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_bind/rule.yml
792d3d
@@ -31,7 +31,7 @@ references:
792d3d
     nist: CM-7(a),CM-7(b),CM-6(a),AC-6,AC-6(1),MP-7
792d3d
     nist-csf: PR.IP-1,PR.PT-3
792d3d
 
792d3d
-platform: machine
792d3d
+platform: machine and partition-var-tmp
792d3d
 
792d3d
 template:
792d3d
     name: mount_option
792d3d
diff --git a/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_noexec/rule.yml b/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_noexec/rule.yml
792d3d
index 39fd458ec6b..dc00b2f2376 100644
792d3d
--- a/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_noexec/rule.yml
792d3d
+++ b/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_noexec/rule.yml
792d3d
@@ -38,7 +38,7 @@ references:
792d3d
     stigid@ol8: OL08-00-040134
792d3d
     stigid@rhel8: RHEL-08-040134
792d3d
 
792d3d
-platform: machine
792d3d
+platform: machine and partition-var-tmp
792d3d
 
792d3d
 template:
792d3d
     name: mount_option
792d3d
diff --git a/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_nosuid/rule.yml b/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_nosuid/rule.yml
792d3d
index 349f3348955..f0c26b6d9c5 100644
792d3d
--- a/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_nosuid/rule.yml
792d3d
+++ b/linux_os/guide/system/permissions/partitions/mount_option_var_tmp_nosuid/rule.yml
792d3d
@@ -38,7 +38,7 @@ references:
792d3d
     stigid@ol8: OL08-00-040133
792d3d
     stigid@rhel8: RHEL-08-040133
792d3d
 
792d3d
-platform: machine
792d3d
+platform: machine and partition-var-tmp
792d3d
 
792d3d
 template:
792d3d
     name: mount_option