From owner-freebsd-hackers Sun Jan 18 14:24:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA19780 for hackers-outgoing; Sun, 18 Jan 1998 14:24:51 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA19728 for ; Sun, 18 Jan 1998 14:24:29 -0800 (PST) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id PAA28795; Sun, 18 Jan 1998 15:24:24 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp03.primenet.com, id smtpd028730; Sun Jan 18 15:24:14 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id PAA04738; Sun, 18 Jan 1998 15:24:13 -0700 (MST) From: Terry Lambert Message-Id: <199801182224.PAA04738@usr04.primenet.com> Subject: Re: socket ops To: guido@gvr.org (Guido van Rooij) Date: Sun, 18 Jan 1998 22:24:13 +0000 (GMT) Cc: FreeBSD-hackers@FreeBSD.ORG In-Reply-To: <199801182139.WAA24386@gvr.gvr.org> from "Guido van Rooij" at Jan 18, 98 10:39:06 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > I just found out that I cannot fchmod unix domain sockets. > > This is because fchmod() calls getvnode() which fails if the vnode > passed is not of type vnode or type fifo. > Is there a reason for this rationale? Look for "struct fileops" in /sys/kern/*.c, and all will be revealed. The mode is referenced via VOP_GETATTR/VOP_SETATTR off of a vnode to get the FS specific method of getting/setting mode bits. If you do not have a backing object, you do not have mode bits. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.