Date: Tue, 9 Aug 2005 01:05:06 GMT From: Wayne Salamon <wsalamon@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 81698 for review Message-ID: <200508090105.j79156TG072109@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508090105.j79156TG072109>