diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-07-01 18:54:49 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-07-01 18:54:49 +0000 |
commit | 4aa265458629d6dd79ed4523932cf2a575a7cad0 (patch) | |
tree | b93e37688ad6051984668bf41a07f84d90173076 /sys/security/audit/audit.h | |
parent | 880189b32b5dca66040d220058bdf7a6775e508f (diff) | |
download | FreeBSD-src-4aa265458629d6dd79ed4523932cf2a575a7cad0.zip FreeBSD-src-4aa265458629d6dd79ed4523932cf2a575a7cad0.tar.gz |
Define missing audit argument macro AUDIT_ARG_SOCKET(), and
capture the domain, type, and protocol arguments to socket(2)
and socketpair(2).
Approved by: re (audit argument blanket)
MFC after: 3 days
Diffstat (limited to 'sys/security/audit/audit.h')
-rw-r--r-- | sys/security/audit/audit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/security/audit/audit.h b/sys/security/audit/audit.h index e94121d..582cc24 100644 --- a/sys/security/audit/audit.h +++ b/sys/security/audit/audit.h @@ -297,6 +297,11 @@ void audit_thread_free(struct thread *td); audit_arg_sgid((sgid)); \ } while (0) +#define AUDIT_ARG_SOCKET(sodomain, sotype, soprotocol) do { \ + if (AUDITING_TD(curthread)) \ + audit_arg_socket((sodomain), (sotype), (soprotocol)); \ +} while (0) + #define AUDIT_ARG_SUID(suid) do { \ if (AUDITING_TD(curthread)) \ audit_arg_suid((suid)); \ @@ -375,6 +380,7 @@ void audit_thread_free(struct thread *td); #define AUDIT_ARG_RUID(ruid) #define AUDIT_ARG_SIGNUM(signum) #define AUDIT_ARG_SGID(sgid) +#define AUDIT_ARG_SOCKET(sodomain, sotype, soprotocol) #define AUDIT_ARG_SUID(suid) #define AUDIT_ARG_TEXT(text) #define AUDIT_ARG_UID(uid) |