NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/53036 CVS commit: src/sys/dist/pf/net



On Feb 19, 12:20am, alnsn%yandex.ru@localhost (Alexander Nasonov) wrote:
-- Subject: Re: PR/53036 CVS commit: src/sys/dist/pf/net

How about adding this?

christos

Index: uipc_socket2.c
===================================================================
RCS file: /cvsroot/src/sys/kern/uipc_socket2.c,v
retrieving revision 1.126
diff -u -u -r1.126 uipc_socket2.c
--- uipc_socket2.c	6 Jul 2017 17:42:39 -0000	1.126
+++ uipc_socket2.c	19 Feb 2018 01:27:55 -0000
@@ -356,6 +356,8 @@
 	}
 	KASSERT(solocked2(head, so));
 
+	so->so_cred = kauth_cred_dup(head->so_cred);
+
 	/*
 	 * Insert into the queue.  If ready, update the connection status
 	 * and wake up any waiters, e.g. processes blocking on accept().


Home | Main Index | Thread Index | Old Index