X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/79809ae1bb322874bf8f741f0842fc20395bd18b..8a27f1c965140ec72dd069582960c64ba9ecf534:/sys/netinet/tcp_subr.c diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 6781701c03..6484054310 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -85,6 +85,7 @@ #include #endif #include +#include #include #include #include @@ -1264,7 +1265,7 @@ tcp_getcred(SYSCTL_HANDLER_ARGS) int cpu; int error; - error = suser(req->td); + error = priv_check(req->td, PRIV_ROOT); if (error != 0) return (error); error = SYSCTL_IN(req, addrs, sizeof addrs); @@ -1297,7 +1298,7 @@ tcp6_getcred(SYSCTL_HANDLER_ARGS) int error; boolean_t mapped = FALSE; - error = suser(req->td); + error = priv_check(req->td, PRIV_ROOT); if (error != 0) return (error); error = SYSCTL_IN(req, addrs, sizeof addrs);