From owner-p4-projects@FreeBSD.ORG Tue Oct 3 11:27:04 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 95A8A16A540; Tue, 3 Oct 2006 11:27:04 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2374716A51A for ; Tue, 3 Oct 2006 11:27:04 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD2F343D58 for ; Tue, 3 Oct 2006 11:27:03 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k93BR30x072962 for ; Tue, 3 Oct 2006 11:27:03 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k93BR3vG072947 for perforce@freebsd.org; Tue, 3 Oct 2006 11:27:03 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 3 Oct 2006 11:27:03 GMT Message-Id: <200610031127.k93BR3vG072947@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 107161 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 11:27:04 -0000 http://perforce.freebsd.org/chv.cgi?CH=107161 Change 107161 by rwatson@rwatson_peppercorn on 2006/10/03 11:26:05 Update for 6.x-only suser() use. Affected files ... .. //depot/projects/trustedbsd/priv6/src/sys/dev/ipw/if_ipw.c#2 edit Differences ... ==== //depot/projects/trustedbsd/priv6/src/sys/dev/ipw/if_ipw.c#2 (text+ko) ==== @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -1579,7 +1580,7 @@ case SIOCSLOADFW: /* only super-user can do that! */ - if ((error = suser(curthread)) != 0) + if ((error = priv_check(curthread, PRIV_DRIVER)) != 0) break; ifr = (struct ifreq *)data; @@ -1588,7 +1589,7 @@ case SIOCSKILLFW: /* only super-user can do that! */ - if ((error = suser(curthread)) != 0) + if ((error = priv_check(curthread, PRIV_DRIVER)) != 0) break; ifp->if_flags &= ~IFF_UP;