[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.4-testing] xsm/flask: Fix AVC audit message format
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1250696155 -3600 # Node ID fbc188c3e4f0a13842ca3c6bc467c507bce69f0e # Parent 5eb1cb326a25f637070ffca052938a2911910b2c xsm/flask: Fix AVC audit message format 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 <sds@xxxxxxxxxxxxx> Signed-off-by: George S. Coker, II <gscoker@xxxxxxxxxxxxxx> xen-unstable changeset: 20064:01546e6749b3 xen-unstable date: Fri Aug 14 17:08:38 2009 +0100 --- xen/xsm/flask/avc.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff -r 5eb1cb326a25 -r fbc188c3e4f0 xen/xsm/flask/avc.c --- a/xen/xsm/flask/avc.c Wed Aug 19 16:35:29 2009 +0100 +++ b/xen/xsm/flask/avc.c Wed Aug 19 16:35:55 2009 +0100 @@ -226,8 +226,8 @@ static void avc_dump_query(u32 ssid, u32 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 @@ void avc_audit(u32 ssid, u32 tsid, u16 t if ( a && a->d ) d = a->d; if ( d ) - printk("domid=%d", d->domain_id); - - printk("\n"); + printk("domid=%d ", d->domain_id); + avc_dump_query(ssid, tsid, tclass); printk("\n"); - } /** _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |