From owner-freebsd-stable Mon Sep 8 21:24:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA01064 for stable-outgoing; Mon, 8 Sep 1997 21:24:15 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA01042 for ; Mon, 8 Sep 1997 21:23:59 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id OAA26730; Tue, 9 Sep 1997 14:18:58 +1000 Date: Tue, 9 Sep 1997 14:18:58 +1000 From: Bruce Evans Message-Id: <199709090418.OAA26730@godzilla.zeta.org.au> To: brian@awfulhak.org, tom@sdf.com Subject: Re: unix domain sockets in 2.2-stable Cc: freebsd-stable@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I found out what is happening. The group and other permissions on unix >sockets are ignored. In my case the pwcheck daemon runs as root, and >therefore the socket is owned by root. However, the cyrus daemons can't >open the socket because it seesm that the other bits (I have r-x >set) are ignored, and the cyrus daemons run as the cyrus user. If I chown >the socket after pwcheck opens it, to the cyrus user, everything works ok. Perhaps the bits used to be rwx. Bruce RCS file: /a/ncvs/src/sys/kern/uipc_usrreq.c,v Working file: uipc_usrreq.c head: 1.26 ... ---------------------------- revision 1.15.4.2 date: 1997/08/15 13:54:00; author: wollman; state: Exp; lines: +2 -2 Obey the process's umask when bind()ing a PF_LOCAL socket. PR: 2680 ----------------------------