summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_priv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_priv.c')
-rw-r--r--sys/kern/kern_priv.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c
index 87cce77..100f6d4 100644
--- a/sys/kern/kern_priv.c
+++ b/sys/kern/kern_priv.c
@@ -133,24 +133,3 @@ priv_check(struct thread *td, int priv)
return (priv_check_cred(td->td_ucred, priv, 0));
}
-
-/*
- * Historical suser() wrapper functions, which now simply request PRIV_ROOT.
- * These will be removed in the near future, and exist solely because
- * the kernel and modules are not yet fully adapted to the new model.
- */
-int
-suser_cred(struct ucred *cred, int flags)
-{
-
- return (priv_check_cred(cred, PRIV_ROOT, flags));
-}
-
-int
-suser(struct thread *td)
-{
-
- KASSERT(td == curthread, ("suser: td != curthread"));
-
- return (suser_cred(td->td_ucred, 0));
-}
OpenPOWER on IntegriCloud