Date: Mon, 17 Jan 2005 12:01:43 GMT From: Wayne Salamon <wsalamon@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 69161 for review Message-ID: <200501171201.j0HC1hch046291@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=69161 Change 69161 by wsalamon@rickenbacker on 2005/01/17 12:01:06 Change the audit_sysclose(0 function to take the thread pointer instead of the proc pointer. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/bsm/audit_kernel.h#11 edit .. //depot/projects/trustedbsd/audit3/sys/kern/kern_descrip.c#4 edit .. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#15 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/bsm/audit_kernel.h#11 (text+ko) ==== @@ -319,7 +319,7 @@ void audit_arg_auditon(union auditon_udata *udata); void audit_arg_file(struct proc *p, struct file *fp); -void audit_sysclose(struct proc *p, int fd); +void audit_sysclose(struct thread *td, int fd); void audit_proc_alloc(struct proc *p); void audit_proc_kproc0(struct proc *p); @@ -357,9 +357,9 @@ /* * A Macro to wrap the audit_sysclose() function. */ -#define AUDIT_SYSCLOSE(p, fd) do { \ +#define AUDIT_SYSCLOSE(td, fd) do { \ if (audit_enabled) \ - audit_sysclose(p, fd); \ + audit_sysclose(td, fd); \ } while (0) #else /* !AUDIT */ ==== //depot/projects/trustedbsd/audit3/sys/kern/kern_descrip.c#4 (text+ko) ==== @@ -972,7 +972,7 @@ /* The call to AUDIT_SYSCLOSE must be made with Giant held, * but without the fd lock. */ - AUDIT_SYSCLOSE(td->td_proc, fd); + AUDIT_SYSCLOSE(td, fd); FILEDESC_LOCK(fdp); if ((unsigned)fd >= fdp->fd_nfiles || ==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#15 (text+ko) ==== @@ -2142,13 +2142,13 @@ * within the system call itself. */ void -audit_sysclose(struct proc *p, int fd) +audit_sysclose(struct thread *td, int fd) { struct file *fp; audit_arg_fd(fd); - if (getvnode(p->p_fd, fd, &fp) != 0) + if (getvnode(td->td_proc->p_fd, fd, &fp) != 0) return; audit_arg_vnpath((struct vnode *)fp->f_data, ARG_VNODE1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501171201.j0HC1hch046291>