Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 530485

Summary: aide: Libgcrypt warning: missing initialization
Product: Red Hat Enterprise Linux 5 Reporter: Olivier Fourdan <ofourdan>
Component: aideAssignee: Steve Grubb <sgrubb>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4CC: kem, ksrot, m_taheruddin, ralph, tao
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-13 12:28:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Proposed patch none

Description Olivier Fourdan 2009-10-23 03:21:35 UTC
Created attachment 365810 [details]
Proposed patch

Description of problem:

Ligcrypt require initializations steps that aide does not perform.

As a results, running "aide -i" will log the following message in /var/log/messages:

    aide: Libgcrypt warning: missing initialization - please fix the application

Version-Release number of selected component (if applicable):

aide-0.13.1-4.el5

How reproducible:

Always

Steps to Reproduce:
1. Run "aide -i"
  
Actual results:

The following message appears in the log:

    aide: Libgcrypt warning: missing initialization - please fix the application

Expected results:

No warning.

Additional info:

This has been reported upstream in 

    http://sourceforge.net/tracker/index.php?func=detail&aid=2763470&group_id=86976&atid=581579

I do nothink the proposed patch in that bug upstream is suitable for the following reasons:

  - it introduces a new error code (I would prefer upstream to add it first before using a new error code)
  - more importantly, that patch disables secure memory for no evident reason.

The library needs to be initialized as per:

    http://www.gnupg.org/documentation/manuals/gcrypt/Initializing-the-library.html

The proposed patch attached adds the required steps to initialize libgcrypt so that the warning does not occur.

Comment 8 errata-xmlrpc 2010-01-13 12:28:37 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0036.html