mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
D'uh. The explicit reseed was happening at the wrong security/privelige
levels.
This commit is contained in:
parent
badfcb1bef
commit
5d4e386e64
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue