Date: Tue, 3 Oct 2006 11:20:51 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 107157 for review Message-ID: <200610031120.k93BKp3Y071439@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107157 Change 107157 by rwatson@rwatson_peppercorn on 2006/10/03 11:19:50 Replace some new suser(9) references with priv(9) references in if_cnw. Affected files ... .. //depot/projects/trustedbsd/priv6/src/sys/dev/cnw/if_cnw.c#2 edit Differences ... ==== //depot/projects/trustedbsd/priv6/src/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> @@ -1340,7 +1341,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; @@ -1351,7 +1352,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; @@ -1362,7 +1363,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610031120.k93BKp3Y071439>