From 5414692efe92a9fb87cbcb374493102bca7424bc Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 18 Jun 2010 11:25:16 -0700 Subject: Shell command logging support Log command exit to message queue for use by command logging daemons. --- logmessage.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 logmessage.h (limited to 'logmessage.h') diff --git a/logmessage.h b/logmessage.h new file mode 100644 index 0000000..5bccacc --- /dev/null +++ b/logmessage.h @@ -0,0 +1,16 @@ +/* Format of messages sent on /vbash message queue. + + This code was originally developed by Vyatta, Inc. + Copyright (C) 2010 Vyatta, Inc. + */ + +struct command_log { + pid_t pid; + int status; + time_t endtime; + uid_t uid, euid; + gid_t gid, egid; + char name[UT_NAMESIZE]; + char tty[UT_LINESIZE]; + char command[0]; +}; -- cgit v1.2.3