From owner-p4-projects@FreeBSD.ORG Tue Jul 5 11:57:08 2005 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 6F31016A424; Tue, 5 Jul 2005 11:57:06 +0000 (GMT) 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 304FA16A41C for ; Tue, 5 Jul 2005 11:57:06 +0000 (GMT) (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 F40BB43D53 for ; Tue, 5 Jul 2005 11:57:05 +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.1/8.13.1) with ESMTP id j65Bv5PP076526 for ; Tue, 5 Jul 2005 11:57:05 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j65Bv5AD076523 for perforce@freebsd.org; Tue, 5 Jul 2005 11:57:05 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 5 Jul 2005 11:57:05 GMT Message-Id: <200507051157.j65Bv5AD076523@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 79599 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, 05 Jul 2005 11:57:08 -0000 http://perforce.freebsd.org/chv.cgi?CH=79599 Change 79599 by rwatson@rwatson_paprika on 2005/07/05 11:56:57 Use CAP_NET_ADMIN to authorize renaming interfaces (new feature) instead of suser(). Affected files ... .. //depot/projects/trustedbsd/sebsd/sys/net/if.c#13 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sys/net/if.c#13 (text+ko) ==== @@ -1256,7 +1256,7 @@ #endif case SIOCSIFNAME: - error = suser(td); + error = cap_check(td, CAP_NET_ADMIN); if (error != 0) return (error); error = copyinstr(ifr->ifr_data, new_name, IFNAMSIZ, NULL);