PERFORCE change 114746 for review

Robert Watson rwatson at FreeBSD.org
Tue Feb 20 12:59:01 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=114746

Change 114746 by rwatson at 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;


More information about the p4-projects mailing list