diff options
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf.c | 4 | ||||
-rw-r--r-- | sys/net/if_tun.c | 4 | ||||
-rw-r--r-- | sys/net/pf_ioctl.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index e150a2e795d..d917d3d9db0 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.90 2013/12/24 23:29:38 tedu Exp $ */ +/* $OpenBSD: bpf.c,v 1.91 2014/03/30 21:54:48 guenther Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -869,7 +869,7 @@ bpfioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) */ case TIOCSPGRP: /* Process or group to send signals to */ d->bd_pgid = *(int *)addr; - d->bd_siguid = p->p_cred->p_ruid; + d->bd_siguid = p->p_ucred->cr_ruid; d->bd_sigeuid = p->p_ucred->cr_uid; break; diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index d36479b438e..2f46811cd5e 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.120 2013/10/24 11:31:43 mpi Exp $ */ +/* $OpenBSD: if_tun.c,v 1.121 2014/03/30 21:54:48 guenther Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -671,7 +671,7 @@ tunioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) break; case TIOCSPGRP: tp->tun_pgid = *(int *)data; - tp->tun_siguid = p->p_cred->p_ruid; + tp->tun_siguid = p->p_ucred->cr_ruid; tp->tun_sigeuid = p->p_ucred->cr_uid; break; case TIOCGPGRP: diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index f87ea5ced82..7435817edbf 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.269 2014/02/04 01:04:03 tedu Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.270 2014/03/30 21:54:48 guenther Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1279,7 +1279,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) pool_put(&pf_rule_pl, rule); break; } - rule->cuid = p->p_cred->p_ruid; + rule->cuid = p->p_ucred->cr_ruid; rule->cpid = p->p_p->ps_pid; switch (rule->af) { @@ -1455,7 +1455,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) break; } pf_rule_copyin(&pcr->rule, newrule, ruleset); - newrule->cuid = p->p_cred->p_ruid; + newrule->cuid = p->p_ucred->cr_ruid; newrule->cpid = p->p_p->ps_pid; switch (newrule->af) { |