Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Strange mkfifo problem over NFS
@ 1994-10-30 19:21 Trevor Blackwell
  1994-10-31 15:24 ` Peter da Silva
  1994-11-01 10:38 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Trevor Blackwell @ 1994-10-30 19:21 UTC (permalink / raw)



There are 2 Alphas, running OSF1 2.0 revision 240. 
Alpha A mounts some disks on alpha B.

When I run mkfifo on alpha A, to the NFS-mounted file system serverd
from alpha B, I get:

crwxr-x---   1 tlb      kung       0,  0 Oct 30 13:50 mkfifo-xxx

which is not a fifo at all, but a console device.  And, in fact,
writing to this first file produces usually output on the console.

When I use mkfifo on a locally mounted disk, I get the right thing:

prw-r-----   1 tlb      system         0 Oct 30 14:12 mkfifo-xxx


I say usually, because sometimes writing to the file produced a kernel
protection fault (Kernel read from illegal address) and reboot.

I wrote a program to call the mknod system call directly, and my
attempt to create a pipe also created character device 0,0.

Looking at this file from alpha B, I see the same character device
0,0. So this is a breach of security, because anyone can create a
character special file. I can't seem to make it be anything other than
0,0, however, so it's not so serious.

But it means I can't use FIFOs the way I'd like.

The system crash was pretty irritating, too. I haven't fully explored
what makes it happen.

Anyone know what's up?

--
Trevor Blackwell         tlb@das.harvard.edu          (617) 495-8912
But Marge! In today's modern cars, you can't get lost, what with all
the silicon chips and such!
Disclaimer: My opinions only.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Strange mkfifo problem over NFS
  1994-10-30 19:21 Strange mkfifo problem over NFS Trevor Blackwell
@ 1994-10-31 15:24 ` Peter da Silva
  1994-11-03  3:04   ` Trevor Blackwell
  1994-11-01 10:38 ` Stefan Monnier
  1 sibling, 1 reply; 4+ messages in thread
From: Peter da Silva @ 1994-10-31 15:24 UTC (permalink / raw)


In article <TLB.94Oct30142155@chardonnay.harvard.edu>,
Trevor Blackwell <tlb@das.harvard.edu> wrote:
> There are 2 Alphas, running OSF1 2.0 revision 240. 
> Alpha A mounts some disks on alpha B.

> When I run mkfifo on alpha A, to the NFS-mounted file system serverd
> from alpha B, I get:

NFS does not provide UNIX semantics on remote devices. In particular,
things like FIFOs can't be implemented due to NFS' stateless semantics.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Strange mkfifo problem over NFS
  1994-10-30 19:21 Strange mkfifo problem over NFS Trevor Blackwell
  1994-10-31 15:24 ` Peter da Silva
@ 1994-11-01 10:38 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 1994-11-01 10:38 UTC (permalink / raw)


In article <TLB.94Oct30142155@chardonnay.harvard.edu>,
Trevor Blackwell <tlb@das.harvard.edu> wrote:
> crwxr-x---   1 tlb      kung       0,  0 Oct 30 13:50 mkfifo-xxx

It's a bug in mknod. We got a patch and it should be in 2.1


	Stefan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Strange mkfifo problem over NFS
  1994-10-31 15:24 ` Peter da Silva
@ 1994-11-03  3:04   ` Trevor Blackwell
  0 siblings, 0 replies; 4+ messages in thread
From: Trevor Blackwell @ 1994-11-03  3:04 UTC (permalink / raw)



> In article <TLB.94Oct30142155@chardonnay.harvard.edu>,
> Trevor Blackwell <tlb@das.harvard.edu> wrote:
> > There are 2 Alphas, running OSF1 2.0 revision 240. 
> > Alpha A mounts some disks on alpha B.
> 
> > When I run mkfifo on alpha A, to the NFS-mounted file system serverd
> > from alpha B, I get:
> 
> NFS does not provide UNIX semantics on remote devices. In particular,
> things like FIFOs can't be implemented due to NFS' stateless semantics.

Well, it works between suns, and between sun and HPUX, and between a
BSDI server and a sun client, and between two BSDI machines, and
between two HPUX machines. (that's what I personally tested on our
network.)

The statelessness of NFS refers to the protocol. The fifo-ness of a
file is a function of its mode bits - the same ones that tell you if
it's readable, etc.

Remember, referencing a FIFO (or any special file) does not do
anything to the server machine. If I write to a console device that is
on a NFS-mounted file system, it writes to the ___client's___ console.
The kernel just sees the mode bits when you open it and says, "Oh, he
wants to write to the console". So you can't NFS-mount another
machine's devices and try to use them over the network that way.

It's clear that it is the OSF1 __server__ implementation that is
broken, because the same problem exists when I try to create such a
file from any client.

--
Trevor Blackwell         tlb@das.harvard.edu          (617) 495-8912
But Marge! In today's modern cars, you can't get lost, what with all
the silicon chips and such!
Disclaimer: My opinions only.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1994-11-03  3:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-30 19:21 Strange mkfifo problem over NFS Trevor Blackwell
1994-10-31 15:24 ` Peter da Silva
1994-11-03  3:04   ` Trevor Blackwell
1994-11-01 10:38 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox