Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2026417

Summary: Add -pie flag to libdb component(db_dump185)
Product: Red Hat Enterprise Linux 9 Reporter: Filip Januš <fjanus>
Component: libdbAssignee: Filip Januš <fjanus>
Status: CLOSED ERRATA QA Contact: Vaclav Danek <vdanek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, databases-maint, jwboyer, mkulik, mmuzila, pkubat
Target Milestone: rcKeywords: TestCaseNotNeeded, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libdb-5.3.28-53.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:58:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Filip Januš 2021-11-24 15:40:54 UTC
Annocheck reports issues for all architectures:

annocheck 'rhel-policy' test fails for /usr/bin/db_dump185 on i686

annocheck: Version 10.13.
Hardened: /usr/bin/db_dump185: FAIL: pie test because not built with '-Wl,-pie' (gcc/clang) or '-buildmode pie' (go) 
Hardened: /usr/bin/db_dump185: info: For more information visit: https://sourceware.org/annobin/annobin.html/Test-pie.html
Hardened: /usr/bin/db_dump185: PASS: optimization test 
Hardened: /usr/bin/db_dump185: PASS: pic test 
Hardened: /usr/bin/db_dump185: PASS: lto test because detected in DWARF information 
Hardened: /usr/bin/db_dump185: PASS: stack-prot test 
Hardened: /usr/bin/db_dump185: PASS: cf-protection test because correct flags found in .note.gnu.property note 
Hardened: /usr/bin/db_dump185: PASS: property-note test 
Hardened: /usr/bin/db_dump185: PASS: writable-got test 
Hardened: /usr/bin/db_dump185: PASS: dynamic-segment test 
Hardened: /usr/bin/db_dump185: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/db_dump185: info: For more information visit: https://sourceware.org/annobin/annobin.html/Test-bind-now.html
Hardened: /usr/bin/db_dump185: FAIL: fortify test because -D_FORTIFY_SOURCE=2 was not present on the command line (function: _dl_relocate_static_pie) 
Hardened: /usr/bin/db_dump185: info: For more information visit: https://sourceware.org/annobin/annobin.html/Test-fortify.html
Hardened: /usr/bin/db_dump185: skip: glibcxx-assertions test because source language not C++ 
Hardened: /usr/bin/db_dump185: PASS: warnings test 
Hardened: /usr/bin/db_dump185: PASS: stack-clash test 
Hardened: /usr/bin/db_dump185: PASS: stack-realign test 
Hardened: /usr/bin/db_dump185: PASS: entry test 
Hardened: /usr/bin/db_dump185: PASS: gnu-stack test because stack segment exists with the correct permissions 
Hardened: /usr/bin/db_dump185: PASS: gnu-relro test 
Hardened: /usr/bin/db_dump185: PASS: notes test because no gaps found 
Hardened: /usr/bin/db_dump185: skip: not-branch-protection test because not an AArch64 binary 
Hardened: /usr/bin/db_dump185: skip: not-dynamic-tags test because AArch64 specific 
Hardened: /usr/bin/db_dump185: skip: go-revision test because no GO compiled code found 
Hardened: /usr/bin/db_dump185: skip: only-go test because no GO compiled code found 
Hardened: /usr/bin/db_dump185: PASS: production test 
Hardened: /usr/bin/db_dump185: PASS: run-path test 
Hardened: /usr/bin/db_dump185: PASS: rwx-seg test 
Hardened: /usr/bin/db_dump185: PASS: short-enums test 
Hardened: /usr/bin/db_dump185: PASS: textrel test 
Hardened: /usr/bin/db_dump185: PASS: threads test 
Hardened: db_dump185: Overall: FAIL.

Comment 2 mkulik 2021-11-26 10:19:29 UTC
annocheck: Version 10.13.
Hardened: /usr/bin/db_dump185: PASS: pie test 
Hardened: /usr/bin/db_dump185: PASS: cf-protection test because correct flags found in .note.gnu.property note 
Hardened: /usr/bin/db_dump185: PASS: property-note test 
Hardened: /usr/bin/db_dump185: PASS: writable-got test 
Hardened: /usr/bin/db_dump185: PASS: dynamic-segment test 
Hardened: /usr/bin/db_dump185: PASS: bind-now test 
Hardened: /usr/bin/db_dump185: PASS: pic test 
Hardened: /usr/bin/db_dump185: skip: fortify test because LTO compilation discards preprocessor options 
Hardened: /usr/bin/db_dump185: PASS: glibcxx-assertions test 
Hardened: /usr/bin/db_dump185: PASS: optimization test 
Hardened: /usr/bin/db_dump185: skip: warnings test because LTO compilation discards preprocessor options 
Hardened: /usr/bin/db_dump185: PASS: lto test because LTO compilation detected 
Hardened: /usr/bin/db_dump185: PASS: stack-prot test 
Hardened: /usr/bin/db_dump185: skip: glibcxx-assertions test because current tool not gcc/clang 
Hardened: /usr/bin/db_dump185: skip: stack-clash test because not compiled by gcc 
Hardened: /usr/bin/db_dump185: PASS: entry test 
Hardened: /usr/bin/db_dump185: PASS: gnu-stack test because stack segment exists with the correct permissions 
Hardened: /usr/bin/db_dump185: PASS: gnu-relro test 
Hardened: /usr/bin/db_dump185: PASS: notes test because no gaps found 
Hardened: /usr/bin/db_dump185: skip: branch-protection test because not an AArch64 binary 
Hardened: /usr/bin/db_dump185: skip: dynamic-tags test because AArch64 specific 
Hardened: /usr/bin/db_dump185: skip: go-revision test because no GO compiled code found 
Hardened: /usr/bin/db_dump185: skip: only-go test because no GO compiled code found 
Hardened: /usr/bin/db_dump185: PASS: production test 
Hardened: /usr/bin/db_dump185: PASS: run-path test 
Hardened: /usr/bin/db_dump185: PASS: rwx-seg test 
Hardened: /usr/bin/db_dump185: PASS: short-enums test 
Hardened: /usr/bin/db_dump185: skip: stack-realign test because not an x86 executable 
Hardened: /usr/bin/db_dump185: PASS: textrel test 
Hardened: /usr/bin/db_dump185: PASS: threads test 
Hardened: db_dump185: Overall: PASS.


Binary checked and it works correctly.

Comment 7 errata-xmlrpc 2022-05-17 15:58:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: libdb), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:3987