Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2007 12:11:06 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 114746 for review
Message-ID:  <200702201211.l1KCB67s004476@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114746

Change 114746 by rwatson@rwatson_cinnamon on 2007/02/20 12:10:31

	Eliminate one more suser() call.

Affected files ...

.. //depot/projects/trustedbsd/priv/sys/net/if_ppp.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/priv/sys/net/if_ppp.c#6 (text+ko) ====

@@ -719,7 +719,7 @@
 	 * XXXRW: Isn't this suser() check redundant to the one at the ifnet
 	 * layer?
 	 */
-	if ((error = suser(td)) != 0)
+	if ((error = priv_check(td, PRIV_NET_SETIFMTU)) != 0)
 	    break;
 	if (ifr->ifr_mtu > PPP_MAXMTU)
 	    error = EINVAL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702201211.l1KCB67s004476>