From owner-freebsd-stable Mon Sep 8 11:59:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA25246 for stable-outgoing; Mon, 8 Sep 1997 11:59:23 -0700 (PDT) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id LAA25235 for ; Mon, 8 Sep 1997 11:59:18 -0700 (PDT) Received: from tom by misery.sdf.com with smtp (Exim 1.62 #1) id 0x88x5-00065P-00; Mon, 8 Sep 1997 11:54:23 -0700 Date: Mon, 8 Sep 1997 11:54:22 -0700 (PDT) From: Tom Samplonius To: freebsd-stable@freebsd.org Subject: unix domain sockets in 2.2-stable Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I use Cyrus for handling a local mail store. It uses a special pwcheck daemon to check passwords as non-root users can't read the encrypted password field. The Cyrus imap and pop servers talk to pwcheck on a unix domain socket at /var/pwcheck/pwcheck This all worked well up to a 2.2-stable kernel from Aug 31. My previous 2.2-stable kernel from Jul 19 still works. If I boot the Aug 31 kernel, cyrus isn't able to connect to the pwcheck deamon, and if I boot to the older Jul 19 kernel cyrus works fine. The connect() call in the following segment of code fails on Aug 31 kernels, and works on Jul 19 kernels and earlier (code is taken from unix_unix_pwcheck.c from Cyrus 1.5.2). memset((char *)&srvaddr, 0, sizeof(srvaddr)); srvaddr.sun_family = AF_UNIX; strcpy(srvaddr.sun_path, STATEDIR); strcat(srvaddr.sun_path, "/pwcheck/pwcheck"); r = connect(s, (struct sockaddr *)&srvaddr, sizeof(srvaddr)); if (r == -1) { *reply = "cannot connect to pwcheck server"; return 1; } Does anyone have any idea on what has changed as far as unix domain sockets in 2.2-stable lately? I've looked at the committ logs, and I don't see anything that stands out. Tom