Merge branches 'master' and 'suser_to_priv'
[dragonfly.git] / sys / net / bridge / if_bridge.c
index c7469c6..2a23d15 100644 (file)
 #include <sys/sysctl.h>
 #include <sys/module.h>
 #include <sys/proc.h>
+#include <sys/priv.h>
 #include <sys/lock.h>
 #include <sys/thread.h>
 #include <sys/thread2.h>
@@ -806,7 +807,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data, struct ucred *cr)
                }
 
                if (bc->bc_flags & BC_F_SUSER) {
-                       error = suser_cred(cr, NULL_CRED_OKAY);
+                       error = priv_check_cred(cr, PRIV_ROOT, NULL_CRED_OKAY);
                        if (error)
                                break;
                }