From owner-p4-projects@FreeBSD.ORG Tue Aug 9 01:05:07 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 3DF3916A421; Tue, 9 Aug 2005 01:05:07 +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 EB72916A41F for ; Tue, 9 Aug 2005 01:05:06 +0000 (GMT) (envelope-from wsalamon@computer.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B67343D46 for ; Tue, 9 Aug 2005 01:05:06 +0000 (GMT) (envelope-from wsalamon@computer.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j79156hw072112 for ; Tue, 9 Aug 2005 01:05:06 GMT (envelope-from wsalamon@computer.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j79156TG072109 for perforce@freebsd.org; Tue, 9 Aug 2005 01:05:06 GMT (envelope-from wsalamon@computer.org) Date: Tue, 9 Aug 2005 01:05:06 GMT Message-Id: <200508090105.j79156TG072109@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to wsalamon@computer.org using -f From: Wayne Salamon To: Perforce Change Reviews Cc: Subject: PERFORCE change 81698 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: Tue, 09 Aug 2005 01:05:08 -0000 http://perforce.freebsd.org/chv.cgi?CH=81698 Change 81698 by wsalamon@gretsch on 2005/08/09 01:04:37 Add auditing the nstat(), nfstat(), and nlstat() system calls. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/kern/init_sysent.c#17 edit .. //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#20 edit .. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#11 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/kern/init_sysent.c#17 (text+ko) ==== @@ -307,9 +307,9 @@ { AS(lchown_args), (sy_call_t *)lchown, AUE_LCHOWN }, /* 275 = netbsd_lchown */ { SYF_MPSAFE | AS(lutimes_args), (sy_call_t *)lutimes, AUE_LUTIMES }, /* 276 = lutimes */ { SYF_MPSAFE | AS(msync_args), (sy_call_t *)msync, AUE_MSYNC }, /* 277 = netbsd_msync */ - { SYF_MPSAFE | AS(nstat_args), (sy_call_t *)nstat, AUE_NULL }, /* 278 = nstat */ - { SYF_MPSAFE | AS(nfstat_args), (sy_call_t *)nfstat, AUE_NULL }, /* 279 = nfstat */ - { SYF_MPSAFE | AS(nlstat_args), (sy_call_t *)nlstat, AUE_NULL }, /* 280 = nlstat */ + { SYF_MPSAFE | AS(nstat_args), (sy_call_t *)nstat, AUE_NSTAT }, /* 278 = nstat */ + { SYF_MPSAFE | AS(nfstat_args), (sy_call_t *)nfstat, AUE_NFSTAT }, /* 279 = nfstat */ + { SYF_MPSAFE | AS(nlstat_args), (sy_call_t *)nlstat, AUE_NLSTAT }, /* 280 = nlstat */ { 0, (sy_call_t *)nosys, AUE_NULL }, /* 281 = nosys */ { 0, (sy_call_t *)nosys, AUE_NULL }, /* 282 = nosys */ { 0, (sy_call_t *)nosys, AUE_NULL }, /* 283 = nosys */ ==== //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#20 (text+ko) ==== @@ -490,9 +490,9 @@ struct timeval *tptr); } 277 AUE_MSYNC MNOPROTO { int msync(void *addr, size_t len, \ int flags); } netbsd_msync msync_args int -278 AUE_NULL MSTD { int nstat(char *path, struct nstat *ub); } -279 AUE_NULL MSTD { int nfstat(int fd, struct nstat *sb); } -280 AUE_NULL MSTD { int nlstat(char *path, struct nstat *ub); } +278 AUE_NSTAT MSTD { int nstat(char *path, struct nstat *ub); } +279 AUE_NFSTAT MSTD { int nfstat(int fd, struct nstat *sb); } +280 AUE_NLSTAT MSTD { int nlstat(char *path, struct nstat *ub); } 281 AUE_NULL UNIMPL nosys 282 AUE_NULL UNIMPL nosys 283 AUE_NULL UNIMPL nosys ==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#11 (text+ko) ==== @@ -581,6 +581,8 @@ case AUE_GETFH: case AUE_LSTAT: case AUE_MKFIFO: + case AUE_NLSTAT: + case AUE_NSTAT: case AUE_PATHCONF: case AUE_READLINK: case AUE_REVOKE: @@ -644,6 +646,7 @@ case AUE_FUTIMES: case AUE_GETDIRENTRIES: case AUE_GETDIRENTRIESATTR: + case AUE_NFSTAT: FD_KPATH1_VNODE1_TOKENS; break;