summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2012-03-28 19:41:06 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2012-03-28 19:41:06 +0000
commitff45a09d72e83b1ec5acbb5b1186c8974e48b8c8 (patch)
tree2897b1a894a64d9c41e8a41faa8bbeb520471dc9 /sys
parent8dd7300cd150dc91536b7fca49bc03817d7d3e2c (diff)
Another pid that needs to be the process pid and not the thread one.
OK deraadt@, guenther@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index d8b963d39b5..df3d6ab2335 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.248 2011/12/12 21:30:27 mikeb Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.249 2012/03/28 19:41:05 claudio Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1045,7 +1045,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
break;
}
rule->cuid = p->p_cred->p_ruid;
- rule->cpid = p->p_pid;
+ rule->cpid = p->p_p->ps_pid;
switch (rule->af) {
case 0:
@@ -1213,7 +1213,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
}
pf_rule_copyin(&pcr->rule, newrule, ruleset);
newrule->cuid = p->p_cred->p_ruid;
- newrule->cpid = p->p_pid;
+ newrule->cpid = p->p_p->ps_pid;
switch (newrule->af) {
case 0: