PERFORCE change 107157 for review
Robert Watson
rwatson at FreeBSD.org
Tue Oct 3 04:20:55 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=107157
Change 107157 by rwatson at 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;
More information about the trustedbsd-cvs
mailing list