From owner-p4-projects@FreeBSD.ORG Mon Oct 17 14:39:11 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4611016A421; Mon, 17 Oct 2005 14:39:11 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0345616A41F for ; Mon, 17 Oct 2005 14:39:11 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 886FD43D64 for ; Mon, 17 Oct 2005 14:39:05 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9HEd5c3071330 for ; Mon, 17 Oct 2005 14:39:05 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9HEd4tW071327 for perforce@freebsd.org; Mon, 17 Oct 2005 14:39:04 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Mon, 17 Oct 2005 14:39:04 GMT Message-Id: <200510171439.j9HEd4tW071327@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 85443 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 14:39:12 -0000 http://perforce.freebsd.org/chv.cgi?CH=85443 Change 85443 by rwatson@rwatson_zoo on 2005/10/17 14:38:23 Audit the pid being requested in wait4(). Solaris appears not to audit wait4(), so we don't currently model it on a standard BSM audit record. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/kern/kern_exit.c#9 edit .. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#22 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/kern/kern_exit.c#9 (text+ko) ==== @@ -594,6 +594,8 @@ struct proc *p, *q, *t; int error, nfound; + AUDIT_ARG(pid, pid); + q = td->td_proc; if (pid == 0) { PROC_LOCK(q); ==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#22 (text+ko) ==== @@ -1018,6 +1018,11 @@ kau_write(rec, tok); break; + case AUE_WAIT4: + tok = au_to_arg32(0, "pid", ar->ar_arg_pid); + kau_write(rec, tok); + break; + default: /* We shouldn't fall through to here. */ printf("BSM conversion requested for unknown event %d\n", ar->ar_event);