diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-04-01 21:31:13 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-04-01 21:31:13 +0000 |
| commit | 44731cab3b9966b7ca67f3fe50e7f3c711533730 (patch) | |
| tree | 79021f0d43a5858be317d5cd33eac8cd4962b336 /sys/dev/random/randomdev.c | |
| parent | a4a49508b4ddf1b482743f71bcd6707c9ce7b406 (diff) | |
Notes
Diffstat (limited to 'sys/dev/random/randomdev.c')
| -rw-r--r-- | sys/dev/random/randomdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index bb7440c3522b..9db07a1de523 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -147,7 +147,7 @@ random_open(dev_t dev __unused, int flags, int fmt __unused, struct thread *td) int error; if (flags & FWRITE) { - error = suser(td->td_proc); + error = suser(td); if (error) return (error); error = securelevel_gt(td->td_ucred, 0); @@ -162,7 +162,7 @@ static int random_close(dev_t dev __unused, int flags, int fmt __unused, struct thread *td) { if (flags & FWRITE) { - if (!(suser(td->td_proc) || + if (!(suser(td) || securelevel_gt(td->td_ucred, 0))) random_reseed(); } |
