From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 19 02:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A9788B70 for ; Tue, 19 Feb 2013 02:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 766DB3C9 for ; Tue, 19 Feb 2013 02:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1J2K0w3043406 for ; Tue, 19 Feb 2013 02:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1J2K0TU043405; Tue, 19 Feb 2013 02:20:00 GMT (envelope-from gnats) Resent-Date: Tue, 19 Feb 2013 02:20:00 GMT Resent-Message-Id: <201302190220.r1J2K0TU043405@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ryan Steinmetz Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 52D97B61 for ; Tue, 19 Feb 2013 02:18:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 2FBF83A4 for ; Tue, 19 Feb 2013 02:18:56 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1J2ItFN038109 for ; Tue, 19 Feb 2013 02:18:55 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r1J2ItTR038108; Tue, 19 Feb 2013 02:18:55 GMT (envelope-from nobody) Message-Id: <201302190218.r1J2ItTR038108@red.freebsd.org> Date: Tue, 19 Feb 2013 02:18:55 GMT From: Ryan Steinmetz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/176259: [openbsm][patch] praudit produces invalid XML (1.2-alpha3) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 02:20:00 -0000 >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: auditd::Audit startup >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: