aboutsummaryrefslogtreecommitdiff
path: root/sys/security/lomac
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2002-02-07 20:58:47 +0000
committerJulian Elischer <julian@FreeBSD.org>2002-02-07 20:58:47 +0000
commit079b7badea4419a07a141547b7323f4c168f40fd (patch)
treeb267ad497d8d81c2c79c107443dabe850da2126b /sys/security/lomac
parent3daf63fc50f59552e7ba4ce58391ff0a5480a4f5 (diff)
downloadsrc-079b7badea4419a07a141547b7323f4c168f40fd.tar.gz
src-079b7badea4419a07a141547b7323f4c168f40fd.zip
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,
Notes
Notes: svn path=/head/; revision=90361
Diffstat (limited to 'sys/security/lomac')
-rw-r--r--sys/security/lomac/kernel_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/lomac/kernel_util.c b/sys/security/lomac/kernel_util.c
index b80bdfde2bbf..9a7a0ab7b9e0 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;