Skip to contentSkip to conversation

xen/xsm/flask: Fix AVC audit message format

PATCH New Stephen Smalley 1 participant 1 message Aug 14, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/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.

---

 xen/xsm/flask/avc.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
xen/xsm/flask/avc.c +3 -5
@@ -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");
-
 }
 
 /**
Signature · 2 lines
Stephen Smalley
National Security Agency