Re: socket ops

[ Available lists | Index of freebsd-hackers | Month of Jan 1998 | Week of 18 Jan 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Guido van Rooij <guido@gvr.org>
Date
18 Jan 1998 14:29:00
Subject
Re: socket ops
Message-ID
199801182228.XAA24830@gvr.gvr.org


[ Hide this part ]
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


Elapsed time: 0.047 seconds