From: Stephen Smalley Subject: [PATCH] xen/xsm/flask: Fix AVC audit message format Date: Fri, 14 Aug 2009 10:18:27 -0400 Message-ID: <1250259507.2422.203.camel@moss-pluto.epoch.ncsc.mil> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: "George S. Coker, II" List-Id: xen-devel@lists.xenproject.org Fix formatting of Flask AVC audit messages so that existing policy tools can parse them. After applying, 'xm dmesg | audit2allow' yields the expected result. Signed-off-by: Stephen D. Smalley Signed-off-by: George S. Coker, II --- xen/xsm/flask/avc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/xsm/flask/avc.c b/xen/xsm/flask/avc.c --- a/xen/xsm/flask/avc.c +++ b/xen/xsm/flask/avc.c @@ -226,8 +226,8 @@ printk(" tcontext=%s", scontext); xfree(scontext); } - printk("\n"); - printk("tclass=%s", class_to_string[tclass]); + + printk(" tclass=%s", class_to_string[tclass]); } /** @@ -560,12 +560,10 @@ if ( a && a->d ) d = a->d; if ( d ) - printk("domid=%d", d->domain_id); + printk("domid=%d ", d->domain_id); - printk("\n"); avc_dump_query(ssid, tsid, tclass); printk("\n"); - } /** -- Stephen Smalley National Security Agency