| version 1.88, 2005/12/11 12:24:57 |
version 1.88.8.1, 2006/05/24 10:59:03 |
| Line 77 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| Line 77 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| #include <sys/errno.h> |
#include <sys/errno.h> |
| #include <sys/systm.h> |
#include <sys/systm.h> |
| #include <sys/proc.h> |
#include <sys/proc.h> |
| |
#include <sys/kauth.h> |
| |
|
| #include <net/if.h> |
#include <net/if.h> |
| #include <net/route.h> |
#include <net/route.h> |
| Line 542 rip_usrreq(struct socket *so, int req, |
|
| Line 543 rip_usrreq(struct socket *so, int req, |
|
| error = EISCONN; |
error = EISCONN; |
| break; |
break; |
| } |
} |
| if (p == 0 || (error = suser(p->p_ucred, &p->p_acflag))) { |
if (p == 0 || (error = kauth_authorize_generic(p->p_cred, |
| |
KAUTH_GENERIC_ISSUSER, &p->p_acflag))) { |
| error = EACCES; |
error = EACCES; |
| break; |
break; |
| } |
} |