From a854ed98931b2e365eddd24cd2a1bb53a3f1828f Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 27 Feb 2002 18:32:23 +0000 Subject: Simple p_ucred -> td_ucred changes to start using the per-thread ucred reference. --- sys/dev/random/randomdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/random') diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index cd6f8739b9c9..fe73b0fe7551 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; -- cgit v1.3