Date: Tue, 3 Oct 2006 08:34:17 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 107150 for review Message-ID: <200610030834.k938YH1n034457@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107150 Change 107150 by rwatson@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610030834.k938YH1n034457>