summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-02-07 00:24:23 +0000
committerpjd <pjd@FreeBSD.org>2013-02-07 00:24:23 +0000
commit041593a1b6f5e2e39bdcc2dba3c78c753b959144 (patch)
treeaf5f5f3f7c5ee0d5c898e7170d3a15ca4cc03d7b /sys/security
parent1b29fe1d27e61acf3692e428d5379df477ffcf2c (diff)
downloadFreeBSD-src-041593a1b6f5e2e39bdcc2dba3c78c753b959144.zip
FreeBSD-src-041593a1b6f5e2e39bdcc2dba3c78c753b959144.tar.gz
Add AUDIT_ARG_SOCKADDR() macro so we can start using the audit_arg_sockaddr()
function, which is currently unused. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/security/audit/audit.h b/sys/security/audit/audit.h
index 69f6c32..f43f6c8 100644
--- a/sys/security/audit/audit.h
+++ b/sys/security/audit/audit.h
@@ -261,6 +261,11 @@ void audit_thread_free(struct thread *td);
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 *td);
#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)
OpenPOWER on IntegriCloud