Date: Sun, 18 Jan 1998 22:24:13 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: guido@gvr.org (Guido van Rooij) Cc: FreeBSD-hackers@FreeBSD.ORG Subject: Re: socket ops Message-ID: <199801182224.PAA04738@usr04.primenet.com> In-Reply-To: <199801182139.WAA24386@gvr.gvr.org> from "Guido van Rooij" at Jan 18, 98 10:39:06 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801182224.PAA04738>