From b5eb64d6f0fccb72419da5552deee22cb6117fac Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 7 Feb 2002 20:58:47 +0000 Subject: Pre-KSE/M3 commit. this is a low-functionality change that changes the kernel to access the main thread of a process via the linked list of threads rather than assuming that it is embedded in the process. It IS still embeded there but remove all teh code that assumes that in preparation for the next commit which will actually move it out. Reviewed by: peter@freebsd.org, gallatin@cs.duke.edu, benno rice, --- sys/security/lomac/kernel_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/security/lomac') diff --git a/sys/security/lomac/kernel_util.c b/sys/security/lomac/kernel_util.c index b80bdfd..9a7a0ab 100644 --- a/sys/security/lomac/kernel_util.c +++ b/sys/security/lomac/kernel_util.c @@ -627,7 +627,7 @@ static int lomac_do_recwd(struct proc *p) { struct nameidata nd; struct filedesc *fdp = curthread->td_proc->p_fd; - struct thread *td = &p->p_thread; + struct thread *td = FIRST_THREAD_IN_PROC(p); /* XXXKSE Only one? */ char *nbuf; struct vnode *cdir, *rdir, *vp; int error; -- cgit v1.1