From owner-cvs-all@FreeBSD.ORG Tue Mar 30 17:41:30 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D1416A4CE; Tue, 30 Mar 2004 17:41:30 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C18A343D3F; Tue, 30 Mar 2004 17:41:30 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2V1fUGe092796; Tue, 30 Mar 2004 17:41:30 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2V1fUF5092792; Tue, 30 Mar 2004 17:41:30 -0800 (PST) (envelope-from rwatson) Message-Id: <200403310141.i2V1fUF5092792@repoman.freebsd.org> From: Robert Watson Date: Tue, 30 Mar 2004 17:41:30 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.c src/sys/fs/portalfs portal_vnops.c src/sys/kern uipc_usrreq.c src/sys/sys un.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 01:41:30 -0000 rwatson 2004/03/30 17:41:30 PST FreeBSD src repository Modified files: sys/fs/fifofs fifo_vnops.c sys/fs/portalfs portal_vnops.c sys/kern uipc_usrreq.c sys/sys un.h Log: Export uipc_connect2() from uipc_usrreq.c instead of unp_connect2(), and consume that interface in portalfs and fifofs instead. In the new world order, unp_connect2() assumes that the unpcb mutex is held, whereas uipc_connect2() validates that the passed sockets are UNIX domain sockets, then grabs the mutex. NB: the portalfs and fifofs code gets down and dirty with UNIX domain sockets. Maybe this is a bad thing. Revision Changes Path 1.92 +1 -1 src/sys/fs/fifofs/fifo_vnops.c 1.61 +1 -1 src/sys/fs/portalfs/portal_vnops.c 1.119 +3 -2 src/sys/kern/uipc_usrreq.c 1.26 +1 -1 src/sys/sys/un.h