Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 235321 - LSPP: audit DAEMON_CONFIG record truncated
LSPP: audit DAEMON_CONFIG record truncated
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: audit (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Grubb
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2007-04-04 22:53 EDT by Linda Knippers
Modified: 2007-11-30 17:07 EST (History)
4 users (show)

See Also:
Fixed In Version: RHBA-2007-0602
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 12:03:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0602 normal SHIPPED_LIVE audit bug fix and enhancement update 2007-10-30 11:35:36 EDT

  None (edit)
Description Linda Knippers 2007-04-04 22:53:33 EDT
Description of problem:
The buffer used to construct the DAEMON_CONFIG isn't big enough
for some lspp subject contexts, causing the results to be truncated.

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

How reproducible:

Steps to Reproduce:
1.On an lspp system, have a context that's fairly long (could be lots of
compartments, for example)
2.do some audit management
Actual results:
type=DAEMON_CONFIG msg=audit(1175743730.429:9233) config changed, auid=500
pid=15992 subj=staff_u:lspp_test_r:lspp_harness_t:s0-s15:c0.c1023 res=succe
type=DAEMON_CONFIG msg=audit(1175727102.355:3465) config changed, auid=500
pid=3100 subj=staff_u:lspp_test_r:lspp_harness_t:s0-s15:c0.c1023 res=succes

Expected results:
The full record should appear, including the res=success

Additional info:
The buffer used for these messages in auditd-event.c is only 128 bytes.
Comment 1 RHEL Product and Program Management 2007-04-05 08:43:55 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 3 Steve Grubb 2007-04-09 10:34:41 EDT
Revised test case for targeted.

As root:
1) setenforce 0
2) runcon -l s0:c0,c2,c4,c6,c8,c10,c12,c14,c16,c18,c20,c22,c24,c26,c28,c30 sh
3) killall -HUP auditd
4) ausearch --start recent -m DAEMON_CONFIG

record will be truncated.
Comment 5 Steve Grubb 2007-04-10 15:35:28 EDT
built audit-1.3.1-4 to address this issue.
Comment 6 Linda Knippers 2007-04-11 12:42:54 EDT
I upgraded to audit-1.3.1-4.el5 and now I see the full DAEMON_CONFIG
audit record.  Thanks.
Comment 10 errata-xmlrpc 2007-11-07 12:03:57 EST
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 the 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.


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