From bd146f1302e08d5a68d08e86966fc81bcbf9df27 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Tue, 20 Feb 2007 15:20:36 +0000 Subject: [PATCH] Replace a suser() check with an explicit check for PRIV_NET_SETIFMTU. --- sys/net/if_ppp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 956f9b62d85..24c381aa873 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -719,7 +719,8 @@ pppsioctl(ifp, cmd, data) * XXXRW: Isn't this suser() check redundant to the one at the ifnet * layer? */ - if ((error = suser(td)) != 0) + error = priv_check(td, PRIV_NET_SETIFMTU); + if (error) break; if (ifr->ifr_mtu > PPP_MAXMTU) error = EINVAL;