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

Failing CentOS build of libxcrypt

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.1
    • libxcrypt
    • None
    • None
    • rhel-security-crypto
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • aarch64
    • None

      What were you trying to do that didn't work?

      Attempting to build the libxcrypt package (libxcrypt-4.4.36-11.el10). The build fails during the %install phase while running fipshmac to generate integrity checksums.

      What is the impact of this issue to you?

      Unable to successfully build the libxcrypt package for RHEL/CentOS Stream 10 in the standard Mock/Koji build environment.

      Please provide the package NVR for which the bug is seen:

      libxcrypt-4.4.36-11.el10

      How reproducible is this bug?:

      Always (100% in restricted build containers)

      Steps to reproduce

      1. Trigger an RPM build of libxcrypt.spec in a restricted build environment (like Koji or Mock using systemd-nspawn).
      2. Wait for the build to reach the %install phase.
      3. Observe the failure when fipshmac is executed.

      Expected results

      The build should complete successfully, with fipshmac either generating the checksums or falling back gracefully if the kernel crypto API is unavailable.

      Actual results

      The build fails during the %install section with the following error:

      + fipshmac -d /builddir/build/BUILDROOT/libxcrypt-4.4.36-11.el10.aarch64/usr/lib64/fipscheck /builddir/build/BUILDROOT/libxcrypt-4.4.36-11.el10.aarch64/usr/lib64/libcrypt.so.2.0.0
      Allocation of hmac(sha256) cipher failed (ret=-111)
      RPM build errors:
          Bad exit status from /var/tmp/rpm-tmp.8NYZf8 (%install)
      

      The error `ret=-111` (ECONNREFUSED) indicates that the fipshmac tool attempted to create an AF_ALG socket to use the kernel's crypto primitives but was blocked by the container environment (seccomp or missing kernel modules on the host).

              szidek@redhat.com Stanislav Zidek
              rhn-support-dtodorov Djordje Todorovic
              Stanislav Zidek Stanislav Zidek
              Alexander Sosedkin Alexander Sosedkin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: