D'uh. The explicit reseed was happening at the wrong security/privelige
levels.
This commit is contained in:
parent
badfcb1bef
commit
5d4e386e64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69174
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user