Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 1998 23:28:12 +0100 (MET)
From:      Guido van Rooij <guido@gvr.org>
To:        tlambert@primenet.com (Terry Lambert)
Cc:        FreeBSD-hackers@FreeBSD.ORG
Subject:   Re: socket ops
Message-ID:  <199801182228.XAA24830@gvr.gvr.org>
In-Reply-To: <199801182224.PAA04738@usr04.primenet.com> from Terry Lambert at "Jan 18, 98 10:24:13 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> > 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.

?? There *is* a backing object. I am talking about UNIX domain
sockets here.

-Guido



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801182228.XAA24830>