PERFORCE change 107150 for review

Robert Watson rwatson at FreeBSD.org
Tue Oct 3 01:34:19 PDT 2006


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

Change 107150 by rwatson at rwatson_peppercorn on 2006/10/03 08:33:17

	Replace additional suser(9) references with priv(9) references.

Affected files ...

.. //depot/projects/trustedbsd/priv/sys/dev/cnw/if_cnw.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/priv/sys/dev/cnw/if_cnw.c#2 (text+ko) ====

@@ -125,6 +125,7 @@
 #include <sys/socket.h>
 #include <sys/mbuf.h>
 #include <sys/ioctl.h>
+#include <sys/priv.h>
 #include <sys/proc.h>
 
 #include <net/if.h>
@@ -1339,7 +1340,7 @@
 #if !defined(__FreeBSD__)
 		error = suser(p->p_ucred, &p->p_acflag);
 #else
-		error = suser(td);
+		error = priv_check(td, PRIV_DRIVER);
 #endif
 		if (error)
 			break;
@@ -1350,7 +1351,7 @@
 #if !defined(__FreeBSD__)
 		error = suser(p->p_ucred, &p->p_acflag);
 #else
-		error = suser(td);
+		error = priv_check(td, PRIV_DRIVER);
 #endif
 		if (error)
 			break;
@@ -1361,7 +1362,7 @@
 #if !defined(__FreeBSD__)
 		error = suser(p->p_ucred, &p->p_acflag);
 #else
-		error = suser(td);
+		error = priv_check(td, PRIV_DRIVER);
 #endif
 		if (error)
 			break;


More information about the trustedbsd-cvs mailing list