diff options
Diffstat (limited to 'sys/dev/random')
-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 cd6f873..fe73b0f 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -147,7 +147,7 @@ random_open(dev_t dev, int flags, int fmt, struct thread *td) error = suser(td->td_proc); if (error) return (error); - error = securelevel_gt(td->td_proc->p_ucred, 0); + error = securelevel_gt(td->td_ucred, 0); if (error) return (error); } @@ -159,7 +159,7 @@ random_close(dev_t dev, int flags, int fmt, struct thread *td) { if (flags & FWRITE) { if (!(suser(td->td_proc) || - securelevel_gt(td->td_proc->p_ucred, 0))) + securelevel_gt(td->td_ucred, 0))) random_reseed(); } return 0; |