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

error: Cannot create repo temporary directory "/tmp/libdnf.3fecxz": Permission denied [rhel-9.4]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • rhel-9.4.z
    • rhel-9.4.z
    • libdnf
    • libdnf-0.69.0-8.el9_4.1
    • ZStream
    • sst_cs_software_management
    • ssg_core_services
    • 20
    • 22
    • None
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Approved Blocker
    • Bug Fix
    • Hide
      Cause: Using DNF in a container where /sys/fs/selinux is not mounted to prevent a user space from changing SELinux contexts.
      Consequence: DNF failed on creating a temporary directory because of violating a SELinux policy.
      Fix: libdnf library was corrected to change a default creation SELinux context only if SELinux appears to be enabled.
      Result: DNF can be used in containers where processes are not expected to change SELinux contexts.
      Show
      Cause: Using DNF in a container where /sys/fs/selinux is not mounted to prevent a user space from changing SELinux contexts. Consequence: DNF failed on creating a temporary directory because of violating a SELinux policy. Fix: libdnf library was corrected to change a default creation SELinux context only if SELinux appears to be enabled. Result: DNF can be used in containers where processes are not expected to change SELinux contexts.
    • Proposed
    • None

      Reportedly this:

      FROM quay.io/centos-bootc/centos-bootc:stream9
      RUN dnf config-manager --set-enabled crb && dnf -y install epel-release epel-next-release
      RUN echo "[vault]" > /etc/yum.repos.d/vault.repo \ && echo "name=Habana Vault" >> /etc/yum.repos.d/vault.repo \ && echo "baseurl=https://vault.habana.ai/artifactory/rhel/9/9.2" >> /etc/yum.repos.d/vault.repo \ && echo "enabled=1" >> /etc/yum.repos.d/vault.repo \ && echo "gpgcheck=0" >> /etc/yum.repos.d/vault.repo
      RUN dnf -y update && dnf -y install habanalabs
      

      Results in

      [build] Error: Cannot create repo temporary directory "/tmp/libdnf.3fecxz": Permission denied
      

      But only when run in Konflux.

            rhn-support-ppisar Petr Pisar
            walters@redhat.com Colin Walters
            packaging-team-maint packaging-team-maint
            Jan Blazek Jan Blazek
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated: