diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-21 00:23:01 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-21 00:23:01 +0000 |
commit | a7d779786d27f1a5b1f8f74d1b6b0bd24a1b8bc8 (patch) | |
tree | 70156d6781d7b296c6d972f69158c3239c869c2c | |
parent | 677b0efe00584970c147295375c4b1631e23c45f (diff) |
two more missing systrace_lock
-rw-r--r-- | sys/dev/systrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index ffe448f2aeb..3113e2d07fc 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -275,7 +275,9 @@ systracef_ioctl(fp, cmd, data, p) if (ret) return (ret); + systrace_lock(); lockmgr(&fst->lock, LK_EXCLUSIVE, NULL, curproc); + systrace_unlock(); if (pid) { strp = systrace_findpid(fst, pid); if (strp == NULL) { @@ -396,7 +398,9 @@ systracef_close(fp, p) struct str_process *strp; struct str_policy *strpol; + systrace_lock(); lockmgr(&fst->lock, LK_EXCLUSIVE, NULL, curproc); + systrace_unlock(); /* Untrace all processes */ for (strp = TAILQ_FIRST(&fst->processes); strp; |