diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2007-04-10 16:09:00 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2007-04-10 16:09:00 +0000 |
| commit | e8c5c7a6351a29deb3777b90c5979fe23656d7ce (patch) | |
| tree | 95b46cbff4a6da64079acf9ced99440215accd86 /sys/netipsec | |
| parent | 4b08405682c5cd3e14e4c8e70d534ec8f19f7132 (diff) | |
Notes
Diffstat (limited to 'sys/netipsec')
| -rw-r--r-- | sys/netipsec/ipsec_osdep.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_osdep.h b/sys/netipsec/ipsec_osdep.h index e1a3926b067d..c1e11b49ca13 100644 --- a/sys/netipsec/ipsec_osdep.h +++ b/sys/netipsec/ipsec_osdep.h @@ -211,7 +211,8 @@ if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp, int adjust) /* * 8. Test for "privileged" socket opened by superuser. - * FreeBSD tests ((so)->so_cred != NULL && suser_cred((so)->so_cred, SUSER_ALLOWJAIL == 0)) + * FreeBSD tests ((so)->so_cred != NULL && priv_check_cred((so)->so_cred, + * PRIV_NETINET_IPSEC, SUSER_ALLOWJAIL) == 0). * NetBSD (1.6N) tests (so)->so_uid == 0). * This difference is wrapped inside the IPSEC_PRIVILEGED_SO() macro. * |
