Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2013 00:24:23 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246446 - head/sys/security/audit
Message-ID:  <201302070024.r170ONES025908@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Feb  7 00:24:23 2013
New Revision: 246446
URL: http://svnweb.freebsd.org/changeset/base/246446

Log:
  Add AUDIT_ARG_SOCKADDR() macro so we can start using the audit_arg_sockaddr()
  function, which is currently unused.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/security/audit/audit.h

Modified: head/sys/security/audit/audit.h
==============================================================================
--- head/sys/security/audit/audit.h	Wed Feb  6 23:48:04 2013	(r246445)
+++ head/sys/security/audit/audit.h	Thu Feb  7 00:24:23 2013	(r246446)
@@ -261,6 +261,11 @@ void	 audit_thread_free(struct thread *t
 		audit_arg_socket((sodomain), (sotype), (soprotocol));	\
 } while (0)
 
+#define	AUDIT_ARG_SOCKADDR(td, sa) do {					\
+	if (AUDITING_TD(curthread))					\
+		audit_arg_sockaddr((td), (sa));				\
+} while (0)
+
 #define	AUDIT_ARG_SUID(suid) do {					\
 	if (AUDITING_TD(curthread))					\
 		audit_arg_suid((suid));					\
@@ -353,6 +358,7 @@ void	 audit_thread_free(struct thread *t
 #define	AUDIT_ARG_SIGNUM(signum)
 #define	AUDIT_ARG_SGID(sgid)
 #define	AUDIT_ARG_SOCKET(sodomain, sotype, soprotocol)
+#define	AUDIT_ARG_SOCKADDR(td, sa)
 #define	AUDIT_ARG_SUID(suid)
 #define	AUDIT_ARG_TEXT(text)
 #define	AUDIT_ARG_UID(uid)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302070024.r170ONES025908>