Skip to content

Commit

Permalink
Move platform to group.yml
Browse files Browse the repository at this point in the history
The platform expression "not container and not bootc" is common for
all rules in the "disk_partitioning" group.
  • Loading branch information
jan-cerny committed Nov 4, 2024
1 parent d6161ef commit b785ae3
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ ocil: |-
The boot partition and pseudo-file systems, such as /proc, /sys, and tmpfs,
are not required to use disk encryption and are not a finding.
platform: not container and not bootc
fixtext: |-
Configure {{{ full_name }}} to prevent unauthorized modification of all information at rest by using disk encryption.
Expand Down
2 changes: 2 additions & 0 deletions linux_os/guide/system/software/disk_partitioning/group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ description: |-
scheme was used, it is possible but nontrivial to
modify it to create separate logical volumes for the directories
listed above. The Logical Volume Manager (LVM) makes this possible.
platform: not container and not bootc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ rationale: |-
severity: medium

platform: not container and not bootc

identifiers:
cce@rhel8: CCE-83336-8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ references:

fixtext: '{{{ fixtext_separate_partition(part="/dev/shm") }}}'

platform: not container and not bootc

warnings:
- general: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ fixtext: |-
srg_requirement: 'A separate {{{ full_name }}} filesystem must be used for user home directories (such as /home or an equivalent).'

platform: not container and not bootc

template:
name: mount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ rationale: |-
severity: medium

platform: not container and not bootc

identifiers:
cce@rhel8: CCE-83340-0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ rationale: |-
severity: unknown

platform: not container and not bootc


identifiers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ fixtext: '{{{ fixtext_separate_partition(part="/tmp") }}}'

srg_requirement: '{{{ srg_requirement_separate_partition("/tmp") }}}'

platform: not container and not bootc

template:
name: mount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ rationale: |-
severity: medium

platform: not container and not bootc

identifiers:
cce@rhel8: CCE-83343-4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ fixtext: '{{{ fixtext_separate_partition(part="/var") }}}'

srg_requirement: '{{{ srg_requirement_separate_partition("/var") }}}'

platform: not container and not bootc

template:
name: mount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ fixtext: '{{{ fixtext_separate_partition(part="/var/log") }}}'

srg_requirement: '{{{ srg_requirement_separate_partition("/var/log") }}}'

platform: not container and not bootc

# (jhrozek): at the moment, the mount probe checks the /proc filesystem
# even if openscap looks at a chroot, which doesn't allow to check for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ fixtext: |-
srg_requirement: |-
{{{ full_name }}} must use a separate file system for the system audit data path.
platform: not container and not bootc
# (jhrozek): at the moment, the mount probe checks the /proc filesystem
# even if openscap looks at a chroot, which doesn't allow to check for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ fixtext: '{{{ fixtext_separate_partition(part="/var/tmp") }}}'

srg_requirement: '{{{ srg_requirement_separate_partition("/var/tmp") }}}'

platform: not container and not bootc

template:
name: mount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ ocil: |-
ocil_clause: "the tmp.mount unit is masked or disabled"

platform: not container and not bootc

template:
name: systemd_mount_enabled
Expand Down

0 comments on commit b785ae3

Please sign in to comment.