kern/176259: [openbsm][patch] praudit produces invalid XML (1.2-alpha3)
Ryan Steinmetz
zi at FreeBSD.org
Tue Feb 19 02:20:00 UTC 2013
>Number: 176259
>Category: kern
>Synopsis: [openbsm][patch] praudit produces invalid XML (1.2-alpha3)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 19 02:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Ryan Steinmetz
>Release:
>Organization:
>Environment:
>Description:
OpenBSM 1.2-alpha3 contains a bug that causes it to produce invalid XML output. The following is an example of the invalid output:
<?xml version='1.0' ?>
<audit>
<record ,56,11,audit startup,0,Tue Feb 19 00:58:45 2013, + 654 msec
<text>auditd::Audit startup</text>
<return errval="success" retval="0" />
</record>
>How-To-Repeat:
Run 'praudit -x ...' on a 9-STABLE or 10-CURRENT box.
>Fix:
Apply the attached patch.
Patch attached with submission follows:
--- ./libbsm/bsm_io.c.orig 2013-02-18 21:07:28.000000000 -0500
+++ ./libbsm/bsm_io.c 2013-02-18 21:07:38.000000000 -0500
@@ -949,7 +949,7 @@
{
print_tok_type(fp, tok->id, "header", oflags);
- if (oflags & AU_OFLAG_RAW) {
+ if (oflags & AU_OFLAG_XML) {
open_attr(fp, "version");
print_1_byte(fp, tok->tt.hdr32.version, "%u");
close_attr(fp);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list