summaryrefslogtreecommitdiff
path: root/logmessage.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-18 11:25:16 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-18 11:32:11 -0700
commit5414692efe92a9fb87cbcb374493102bca7424bc (patch)
treeeb62b179aed6658a74479b208de27dbfe95e3b58 /logmessage.h
parentf726fb8698b59328fae9842a88e8a054ccddb45c (diff)
downloadvyatta-bash-5414692efe92a9fb87cbcb374493102bca7424bc.tar.gz
vyatta-bash-5414692efe92a9fb87cbcb374493102bca7424bc.zip
Shell command logging support
Log command exit to message queue for use by command logging daemons.
Diffstat (limited to 'logmessage.h')
-rw-r--r--logmessage.h16
1 files changed, 16 insertions, 0 deletions
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];
+};