PERFORCE change 148572 for review
Diego Giagio
diego at FreeBSD.org
Wed Aug 27 02:25:33 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=148572
Change 148572 by diego at diego_black on 2008/08/27 02:25:18
Missed submiting this. Add socket_ex argument to audit record.
Affected files ...
.. //depot/projects/soc2008/diego-audit/src/sys/security/audit/audit_arg.c#8 edit
Differences ...
==== //depot/projects/soc2008/diego-audit/src/sys/security/audit/audit_arg.c#8 (text) ====
@@ -408,6 +408,26 @@
}
void
+audit_arg_socket_ex(int sodomain, int sotype, struct sockaddr *la,
+ struct sockaddr *ra)
+{
+ struct kaudit_record *ar;
+
+ KASSERT(la != NULL, ("audit_arg_socket_ex: la == NULL"));
+ KASSERT(ra != NULL, ("audit_arg_socket_ex: ra == NULL"));
+
+ ar = currecord();
+ if (ar == NULL)
+ return;
+
+ ar->k_ar.ar_arg_sockconn.sc_domain = sodomain;
+ ar->k_ar.ar_arg_sockconn.sc_type = sotype;
+ bcopy(la, &ar->k_ar.ar_arg_sockconn.sc_laddr, la->sa_len);
+ bcopy(ra, &ar->k_ar.ar_arg_sockconn.sc_raddr, ra->sa_len);
+ ARG_SET_VALID(ar, ARG_SOCKCONN);
+}
+
+void
audit_arg_sockaddr(struct thread *td, struct sockaddr *sa)
{
struct kaudit_record *ar;
More information about the p4-projects
mailing list