Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2005 19:33:54 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 85460 for review
Message-ID:  <200510171933.j9HJXsA1097635@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=85460

Change 85460 by rwatson@rwatson_peppercorn on 2005/10/17 19:32:52

	Audit signal numbers for kill() and killpg() system calls.
	
	More auditing to do here in terms of target processes.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/kern/kern_sig.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/kern/kern_sig.c#6 (text+ko) ====

@@ -74,6 +74,8 @@
 
 #include <machine/cpu.h>
 
+#include <security/audit/audit.h>
+
 #if defined (__alpha__) && !defined(COMPAT_43)
 #error "You *really* need COMPAT_43 on the alpha for longjmp(3)"
 #endif
@@ -1386,6 +1388,8 @@
 	register struct proc *p;
 	int error;
 
+	AUDIT_ARG(signum, uap->signum);
+
 	if ((u_int)uap->signum > _SIG_MAXSIG)
 		return (EINVAL);
 
@@ -1429,6 +1433,8 @@
 	register struct okillpg_args *uap;
 {
 
+	AUDIT_ARG(signum, uap->signum);
+
 	if ((u_int)uap->signum > _SIG_MAXSIG)
 		return (EINVAL);
 	return (killpg1(td, uap->signum, uap->pgid, 0));



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