diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-09-26 03:40:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-09-26 03:40:00 +0000 |
commit | 450f0435cc177f758171ac06f69f18444988ba4f (patch) | |
tree | 5f34c5e666edddf495dcc8d639bd00248d5b4030 /sys/kern/uipc_socket2.c | |
parent | a0527eae87aea2301eacb1c024c3731da8f8665b (diff) |
At sonewconn() time, copy so_siguid & so_sigeuid to the newly created socket.
Stops a nasty little program supplied by gustavo@core-sdi.com
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 c8982875fd3..755669c07df 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.19 2001/07/05 08:10:30 art Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.20 2001/09/26 03:39:59 deraadt Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -173,6 +173,8 @@ sonewconn(head, connstatus) so->so_pgid = head->so_pgid; so->so_euid = head->so_euid; so->so_ruid = head->so_ruid; + 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); soqinsque(head, so, soqueue); if ((*so->so_proto->pr_usrreq)(so, PRU_ATTACH, |