diff options
author | markm <markm@FreeBSD.org> | 2000-11-25 20:08:07 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-11-25 20:08:07 +0000 |
commit | 24be0469f9100377c4aafdb8a17bb2624a3dde61 (patch) | |
tree | bb56b0e2c9f6b404a207ce2a89f2fd36ada7583c | |
parent | e31e67991ff57d05c8cbd7e1dd7b61025bf9da8f (diff) | |
download | FreeBSD-src-24be0469f9100377c4aafdb8a17bb2624a3dde61.zip FreeBSD-src-24be0469f9100377c4aafdb8a17bb2624a3dde61.tar.gz |
D'uh. The explicit reseed was happening at the wrong security/privelige
levels.
-rw-r--r-- | sys/dev/random/randomdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 37aeb3d..6c9ee84 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -107,7 +107,7 @@ random_open(dev_t dev, int flags, int fmt, struct proc *p) static int random_close(dev_t dev, int flags, int fmt, struct proc *p) { - if ((flags & FWRITE) && (securelevel > 0 || suser(p))) + if ((flags & FWRITE) && !(securelevel > 0 || suser(p))) random_reseed(); return 0; } |