Call securelevel_gt with a credential. Also, s/p/td->td_proc/.

Submitted by:	LINT
This commit is contained in:
Brooks Davis 2001-09-26 22:02:01 +00:00
parent 49c024e373
commit 2862fc7a49
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83995

View File

@ -182,7 +182,7 @@ struct spigot_softc *ss = (struct spigot_softc *)&spigot_softc[UNIT(dev)];
error = suser_td(td); error = suser_td(td);
if (error != 0) if (error != 0)
return error; return error;
error = securelevel_gt(p, 0); error = securelevel_gt(td->td_proc->p_ucred, 0);
if (error != 0) if (error != 0)
return error; return error;
#endif #endif
@ -239,7 +239,7 @@ struct spigot_info *info;
error = suser_td(td); error = suser_td(td);
if (error != 0) if (error != 0)
return error; return error;
error = securelevel_gt(p->p_ucred, 0); error = securelevel_gt(td->td_proc->p_ucred, 0);
if (error) if (error)
return error; return error;
#endif #endif