[PATCH] Add variadic-style alternative function for avc logging

Eamon Walsh ewalsh at tycho.nsa.gov
Sat Sep 9 02:33:08 UTC 2006


The attached patch adds a new function audit_log_user_avc_message_fmt
that behaves just like audit_log_user_avc_message, but takes a format
string and argument list instead of a fixed message string.

This change will make it easier to use libaudit from SElinux userspace
object managers, since the libselinux logging callback takes a
format-string and variable length list.

If desired, I can send a patch to introduce this alternative for the
other calls as well.


Signed-off-by: Eamon Walsh <ewalsh at tycho.nsa.gov>

 docs/audit_log_user_avc_message.3 |   12 +++++++++++-
 lib/audit_logging.c               |   25 +++++++++++++++++++++++++
 lib/libaudit.h                    |    3 +++
 3 files changed, 39 insertions(+), 1 deletion(-)


-- 
Eamon Walsh <ewalsh at tycho.nsa.gov>
National Security Agency
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avcfmt.patch
Type: text/x-patch
Size: 3278 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20060908/a8560a70/attachment.bin>


More information about the Linux-audit mailing list