Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jul 2005 11:57:05 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 79599 for review
Message-ID:  <200507051157.j65Bv5AD076523@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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