Skip to content

Rule: mount_option_boot_efi_nosuid, remove "uefi" platform #12958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

evgenyz
Copy link
Member

@evgenyz evgenyz commented Feb 1, 2025

Description:

  • We should not care if the system is UEFI or non-UEFI at the moment of check/remediation and fix the options if the entry is configured.

Rationale:

Review Hints:

  • See logs of the system state inside osbuild env. in the linked issue.

The rule does not care about /sys/firmware/efi, so we should not
use existence of this directory as a guardian.

Moreover following the logic of "mount_option" template the rule
will check and remediate options only if mount point
is active/present in /etc/fstab. That's enough to not interfere
with non-UEFI systems.
Copy link

codeclimate bot commented Feb 1, 2025

Code Climate has analyzed commit e3667e1 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 61.9% (0.0% change).

View more on Code Climate.

@evgenyz evgenyz added this to the 0.1.76 milestone Feb 3, 2025
@evgenyz evgenyz added productization-issue Issue found in upstream stabilization process. CPE-AL CPE Applicability Language osbuild Related in some way to Image Builder. labels Feb 3, 2025
@Mab879 Mab879 self-assigned this Feb 3, 2025
@Mab879
Copy link
Member

Mab879 commented Feb 3, 2025

/retest

@Mab879 Mab879 merged commit 797cbcc into ComplianceAsCode:master Feb 3, 2025
108 of 109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CPE-AL CPE Applicability Language osbuild Related in some way to Image Builder. productization-issue Issue found in upstream stabilization process.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mount_option_boot_efi_nosuid is notapplicable during OSBuild remediation on an UEFI system
2 participants