Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-2517

rpm: package scanner cannot handle cross-layer hardlinks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • clair-4.3.0
    • None
    • clair

      jcroslan picked out some interesting log lines that indicated the hardlinking step was failing. After ruling out incorrect API usage, I thought the layer was broken until I realized there's a corner case in layer application: because layers are defined to be applied to a filesystem in order, it's perfectly valid to create a hardlink in a higher layer if it's known the file will be present from a lower layer.

      So this should get fixed to redirect all dangling hard links to an empty file. NB it can't be a file like /dev/null because hardlinks cannot span a filesystem, and /tmp is usually a ramdisk.

              hdonnay Henry Donnay
              hdonnay Henry Donnay
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: