summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2009-12-23 07:40:31 +0000
committerguenther <guenther@openbsd.org>2009-12-23 07:40:31 +0000
commit2428a54eed94b654e4109de8a92f6b0f8e73eba0 (patch)
tree4019d2617c44583cc6871e248cea39055eeb01b1 /sys/netinet/ip_output.c
parentpartion -> partition. First one (mkfs.c) noted by Brad Tilley on tech@. (diff)
downloadwireguard-openbsd-2428a54eed94b654e4109de8a92f6b0f8e73eba0.tar.xz
wireguard-openbsd-2428a54eed94b654e4109de8a92f6b0f8e73eba0.zip
The process's rdomain should be, well, per-process and not per-rthread,
so put it in struct process instead of struct proc. While at it, move the p_emul member inside struct proc so that it gets copied automatically instead of requiring manual assignment. ok deraadt@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 68f73f978e9..7a37d4016d7 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.201 2009/12/11 17:50:57 deraadt Exp $ */
+/* $OpenBSD: ip_output.c,v 1.202 2009/12/23 07:40:31 guenther Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -1423,7 +1423,8 @@ ip_ctloutput(op, so, level, optname, mp)
break;
}
rtid = *mtod(m, u_int *);
- if (p->p_rdomain != 0 && p->p_rdomain != rtid &&
+ if (p->p_p->ps_rdomain != 0 &&
+ p->p_p->ps_rdomain != rtid &&
(error = suser(p, 0)) != 0) {
error = EACCES;
break;