Bug 580253 - AIDE compare_dbline function returns int
Summary: AIDE compare_dbline function returns int
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: aide
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Daniel Kopeček
QA Contact: Karel Srot
URL:
Whiteboard:
: 644185 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-07 20:14 UTC by Patrick Neely
Modified: 2013-04-12 20:40 UTC (History)
3 users (show)

Fixed In Version: aide-0.13.1-8.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-27 07:53:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch Changes int to long long unsigned (1.00 KB, patch)
2010-04-07 20:14 UTC, Patrick Neely
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1119 0 normal SHIPPED_LIVE aide bug fix update 2012-07-27 11:50:22 UTC

Description Patrick Neely 2010-04-07 20:14:20 UTC
Created attachment 405088 [details]
Patch Changes int to long long unsigned

Description of problem:

The compare_dbline functions returns an int, even though it can contain numbers larger than type int.  For example, DB_SELINUX, DB_XATTRS, and DB_WHIRLPOOL are all larger than the int return value.

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

How reproducible:
Every Time

Steps to Reproduce:
1.  echo "/test    u+selinux" >> /etc/aide.conf
2.  mkdir /test
3.  touch /test/test.1
4.  aide --init
5.  cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
6.  chcon -t etc_t /test/test.1
7.  aide --check
  
Actual results:
AIDE, version 0.13.1

### All files match AIDE database. Looks okay!


Expected results:
AIDE, version 0.13.1

AIDE found differences between database and filesystem!!

---------------------------------------------------
Changed files:
---------------------------------------------------

changed: /test/test.1


File: /test/test.1
  SELinux  : user_u:object_r:default_t:s0         , user_u:object_r:etc_t:s0

Comment 4 Karel Srot 2012-05-03 12:29:10 UTC
Isn't it a duplicate of bug 644185?

Comment 5 Daniel Kopeček 2012-05-03 12:40:52 UTC
Yeah, it seems that rhbz#644185 is a duplicate of this bug.

Comment 6 Karel Srot 2012-05-03 13:28:48 UTC
*** Bug 644185 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2012-07-27 07:53:24 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2012-1119.html


Note You need to log in before you can comment on or make changes to this bug.