xsm/flask: buffer AVC messages for output
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Wed, 29 Feb 2012 13:47:41 +0000 (13:47 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Wed, 29 Feb 2012 13:47:41 +0000 (13:47 +0000)
commit42d446c595a99c0a57b3b597dd679da8b2e4ce74
tree5a524ce44498fe82d26ae737b27074dd2f6303b8
parent4e7cbab278a563e9a162a758cf2dc2ea5052d25c
xsm/flask: buffer AVC messages for output

When multiple CPUs hit an AVC audit message, the resulting output in
the ring buffer and serial console is garbled due to the audit process
using many separate printk invocations for each message. Change the
AVC audit process to use a temporary buffer and output the contents
once the entire audit message is complete.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
xen/xsm/flask/avc.c