[asterisk-commits] russell: branch group/security_events r199287 - /team/group/security_events/m...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 5 15:04:23 CDT 2009


Author: russell
Date: Fri Jun  5 15:04:20 2009
New Revision: 199287

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199287
Log:
Make event timestamp show up in the security log

Modified:
    team/group/security_events/main/security_events.c

Modified: team/group/security_events/main/security_events.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/main/security_events.c?view=diff&rev=199287&r1=199286&r2=199287
==============================================================================
--- team/group/security_events/main/security_events.c (original)
+++ team/group/security_events/main/security_events.c Fri Jun  5 15:04:20 2009
@@ -50,6 +50,7 @@
 	.name    = "FailedACL",
 	.version = AST_SECURITY_EVENT_FAILED_ACL_VERSION,
 	.required_ies = {
+		{ AST_EVENT_IE_EVENT_TV, 0 },
 		{ AST_EVENT_IE_SERVICE, SEC_EVT_FIELD(common, service) },
 		{ AST_EVENT_IE_EVENT_VERSION, SEC_EVT_FIELD(common, version) },
 		{ AST_EVENT_IE_ACCOUNT_ID, SEC_EVT_FIELD(failed_acl, account_id) },
@@ -70,6 +71,7 @@
 	.name    = "InvalidAccountID",
 	.version = AST_SECURITY_EVENT_INVAL_ACCT_ID_VERSION,
 	.required_ies = {
+		{ AST_EVENT_IE_EVENT_TV, 0 },
 		{ AST_EVENT_IE_SERVICE, SEC_EVT_FIELD(common, service) },
 		{ AST_EVENT_IE_EVENT_VERSION, SEC_EVT_FIELD(common, version) },
 		{ AST_EVENT_IE_ACCOUNT_ID, SEC_EVT_FIELD(inval_acct_id, account_id) },
@@ -89,6 +91,7 @@
 	.name    = "CallLimit",
 	.version = AST_SECURITY_EVENT_CALL_LIMIT_VERSION,
 	.required_ies = {
+		{ AST_EVENT_IE_EVENT_TV, 0 },
 		{ AST_EVENT_IE_SERVICE, SEC_EVT_FIELD(common, service) },
 		{ AST_EVENT_IE_EVENT_VERSION, SEC_EVT_FIELD(common, version) },
 		{ AST_EVENT_IE_ACCOUNT_ID, SEC_EVT_FIELD(call_limit, account_id) },
@@ -108,6 +111,7 @@
 	.name    = "MemoryLimit",
 	.version = AST_SECURITY_EVENT_MEM_LIMIT_VERSION,
 	.required_ies = {
+		{ AST_EVENT_IE_EVENT_TV, 0 },
 		{ AST_EVENT_IE_SERVICE, SEC_EVT_FIELD(common, service) },
 		{ AST_EVENT_IE_EVENT_VERSION, SEC_EVT_FIELD(common, version) },
 		{ AST_EVENT_IE_ACCOUNT_ID, SEC_EVT_FIELD(mem_limit, account_id) },
@@ -127,6 +131,7 @@
 	.name    = "LoadAverageLimit",
 	.version = AST_SECURITY_EVENT_LOAD_AVG_VERSION,
 	.required_ies = {
+		{ AST_EVENT_IE_EVENT_TV, 0 },
 		{ AST_EVENT_IE_SERVICE, SEC_EVT_FIELD(common, service) },
 		{ AST_EVENT_IE_EVENT_VERSION, SEC_EVT_FIELD(common, version) },
 		{ AST_EVENT_IE_ACCOUNT_ID, SEC_EVT_FIELD(load_avg, account_id) },
@@ -322,6 +327,9 @@
 
 		break;
 	}
+	case AST_EVENT_IE_EVENT_TV:
+		/* Added automatically, nothing to do here. */
+		break;
 	default:
 		ast_log(LOG_WARNING, "Unhandled IE type '%d', this security event "
 				"will be missing data.\n", ie_type->ie_type);




More information about the asterisk-commits mailing list