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

RPM does not apply UID/GID ownership of files and directories correctly in image mode

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.7
    • rpm
    • None
    • None
    • None
    • rhel-swm
    • None
    • False
    • False
    • Hide

      None

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

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

      Start Bind service on RHEL 9 machine built by image mode.

      What is the impact of this issue to you?

      Bind with current permissions on configuration files will not start.

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

      rpm-4.16.1.3-39

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Build image mode RHEL 9 image with package having files with UID or GID != root
      2. Start the image and verify those files have indeed the right ownership

      Expected results

      UID/GID is correct

      Actual results

      both UID and GID is root and in the log of building the image you can see:

       

                  out:   Running scriptlet: bind-32:9.16.23-36.el9.x86_64                      172/244 
                  out:   Installing       : bind-32:9.16.23-36.el9.x86_64                      172/244 
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: user named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: user named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: user named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: warning: user named does not exist - using root
                  out: warning: group named does not exist - using root
                  out: 
                  out:   Running scriptlet: bind-32:9.16.23-36.el9.x86_64                      172/244 

      Additional info

      We had to fix some issues which were in the Bind package itself, like tmpfiles and sysusers usage to make bind work in image mode, so the proposed spec file which was used to trigger this is here https://gitlab.com/redhat/centos-stream/rpms/unbound/-/tree/c9s?ref_type=heads

       

              packaging-team-maint packaging-team-maint
              tkorbar@redhat.com Tomáš Korbař
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: