summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2001-09-26 22:02:01 +0000
committerbrooks <brooks@FreeBSD.org>2001-09-26 22:02:01 +0000
commit2a6102d3e89e281ef727f72bc778eb1e30f85740 (patch)
treeb559bc51218c299950a9c5c8f70e0f556e0483db /sys
parentb9f9861d89c399245448519311bcca75f79e1bab (diff)
downloadFreeBSD-src-2a6102d3e89e281ef727f72bc778eb1e30f85740.zip
FreeBSD-src-2a6102d3e89e281ef727f72bc778eb1e30f85740.tar.gz
Call securelevel_gt with a credential. Also, s/p/td->td_proc/.
Submitted by: LINT
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/spigot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c
index f41b763..9f9fc20 100644
--- a/sys/i386/isa/spigot.c
+++ b/sys/i386/isa/spigot.c
@@ -182,7 +182,7 @@ struct spigot_softc *ss = (struct spigot_softc *)&spigot_softc[UNIT(dev)];
error = suser_td(td);
if (error != 0)
return error;
- error = securelevel_gt(p, 0);
+ error = securelevel_gt(td->td_proc->p_ucred, 0);
if (error != 0)
return error;
#endif
@@ -239,7 +239,7 @@ struct spigot_info *info;
error = suser_td(td);
if (error != 0)
return error;
- error = securelevel_gt(p->p_ucred, 0);
+ error = securelevel_gt(td->td_proc->p_ucred, 0);
if (error)
return error;
#endif
OpenPOWER on IntegriCloud