WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.4-testing] xsm/flask: Fix AVC audit message forma

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] xsm/flask: Fix AVC audit message format
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Aug 2009 08:40:52 -0700
Delivery-date: Wed, 19 Aug 2009 08:44:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] xsm/flask: Fix AVC audit message format, Xen patchbot-3.4-testing <=