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

annocheck reports that no code present for /usr/lib64/libpython3.so

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • python3.9
    • None
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

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

      Running annocheck on /usr/lib64/libpython3.so reports

      Hardened: /usr/lib64/libpython3.so: skip: pic test because no code present - therefore test not needed
      Hardened: /usr/lib64/libpython3.so: skip: stack-prot test because no code present - therefore no stack protection needed

      Please provide the package NVR for which bug is seen:

      python3-libs-3.9.18-1.el9_3

      How reproducible:

      deterministic

      Steps to reproduce

      1. dnf install -y annobin-annocheck
      2. dnf debuginfo-install --exclude '*-debugsource' python3
      3. annocheck -v --skip-all --test-pic --test-pie --test-stack-prot --test-bind-now --test-gnu-relro /usr/lib64/libpython3.so

      Expected results

      No "skip: pic/stack-prot test because no code present".

      Actual results

      Hardened: /usr/lib64/libpython3.so: PASS: pie test 
      Hardened: /usr/lib64/libpython3.so: PASS: bind-now test 
      Hardened: /usr/lib64/libpython3.so: PASS: gnu-relro test 
      Hardened: /usr/lib64/libpython3.so: skip: pic test because no code present - therefore test not needed 
      Hardened: /usr/lib64/libpython3.so: skip: stack-prot test because no code present - therefore no stack protection needed 
      Hardened: /usr/lib64/libpython3.so: Overall: PASS.
      annocheck: Version 12.28.
      

              python-maint python-maint
              mmarhefk@redhat.com Matus Marhefka
              python-maint python-maint
              bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: