Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-11350

make fips-mode-setup more chroot-friendly

    • crypto-policies-20231109-1.git0ceff7f.el9
    • sst_security_crypto
    • ssg_security
    • 11
    • 13
    • 2
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Crypto23Q4
    • Hide
      • AC1: Empty /boot => fips-mode-setup fails
      • AC2.1: For both chroot and no chroot, (proper) /boot and / on the same partition => no boot= parameter is given to bootloader
      • AC2.2: For both chroot and no chroot, (proper) /boot/ and / on different partitions => boot= parameter is given to bootloader (having and not having /boot in /etc/fstat might be considered)
      • AC3: fips-mode-setup --no-boot-cfg succeeds without modifying bootloader configuration reagardless of chroot
      Show
      AC1: Empty /boot => fips-mode-setup fails AC2.1: For both chroot and no chroot, (proper) /boot and / on the same partition => no boot= parameter is given to bootloader AC2.2: For both chroot and no chroot, (proper) /boot/ and / on different partitions => boot= parameter is given to bootloader (having and not having /boot in /etc/fstat might be considered) AC3: fips-mode-setup --no-boot-cfg succeeds without modifying bootloader configuration reagardless of chroot
    • Pass
    • Not Needed
    • Yes
    • Release Note Not Required

      https://gitlab.com/redhat-crypto/fedora-crypto-policies/-/issues/44

      Takeaways:

      • If /boot is empty, fips-mode-setup should abort and ask to mount it first
      • In a chroot with /boot mounted as different partition from /, fips-mode-setup should add boot=UUID=... to kernel parameters
      • In a chroot with /boot sharing the partition with /, fips-mode-setup should not add boot= to kernel parameters
      • /boot checks should mind autofs / automount.boot / systemd-gpt-auto-generator(8)

            omoris Ondrej Moris
            asosedki@redhat.com Alexander Sosedkin
            Clemens Lang Clemens Lang
            Ondrej Moris Ondrej Moris
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: