summaryrefslogtreecommitdiffstats
path: root/sys/dev/random
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-02-27 18:32:23 +0000
committerjhb <jhb@FreeBSD.org>2002-02-27 18:32:23 +0000
commit3706cd350927f08fa8742cce9448c9ba8e4d6b2c (patch)
treede74317436bc6bf8211535e1dbda3f6762d05582 /sys/dev/random
parentec01b5bdbc40025303ba133be03a747c8dc62a2c (diff)
downloadFreeBSD-src-3706cd350927f08fa8742cce9448c9ba8e4d6b2c.zip
FreeBSD-src-3706cd350927f08fa8742cce9448c9ba8e4d6b2c.tar.gz
Simple p_ucred -> td_ucred changes to start using the per-thread ucred
reference.
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/randomdev.c4
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;
OpenPOWER on IntegriCloud