diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-11 00:06:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-11 00:06:34 +0000 |
commit | c5d734d9312af8955fd681c243c46501f2e88049 (patch) | |
tree | 5e061922a03de2498a775d620c60b5893df763df /sys/kern/uipc_socket2.c | |
parent | c1e037c5706f1478be85f25fe4235d466124b80a (diff) |
track egid/rgid on bound/connected sockets too (pf will use this)
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r-- | sys/kern/uipc_socket2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 970d58d245f..ce11cc5c775 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.25 2001/11/30 19:48:09 provos Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.26 2002/05/11 00:06:33 deraadt Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -176,6 +176,8 @@ sonewconn(head, connstatus) so->so_pgid = head->so_pgid; so->so_euid = head->so_euid; so->so_ruid = head->so_ruid; + so->so_egid = head->so_egid; + so->so_rgid = head->so_rgid; so->so_siguid = head->so_siguid; so->so_sigeuid = head->so_sigeuid; (void) soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat); |