Re: Please test knfsd-980920

Robert Knop (rknop@panisse.lbl.gov)
Mon, 21 Sep 1998 23:48:17 -0700 (PDT)


> 5. Fix hostname matching.

I think this is still not working.

I tried exporting a disk to several different machines using their
hostnames. It would only work to one of these machines. However, if I do
it using the IP addresses, it works. Here's a sample session indicating
the problem:

bash# cat /var/lib/nfs/xtab
bash# ls -l /var/lib/nfs/xtab
-rw-rw-r-- 1 root root 0 Sep 21 23:45 /var/lib/nfs/xtab
bash# hostname
milano
bash# nslookup milano
Server: nsx.lbl.gov
Address: 131.243.64.3

Name: milano.lbl.gov
Address: 128.3.32.191

bash# nslookup dara
Server: nsx.lbl.gov
Address: 131.243.64.3

Name: dara.lbl.gov
Address: 128.3.2.27

bash# nslookup lilys
Server: nsx.lbl.gov
Address: 131.243.64.3

Name: lilys.lbl.gov
Address: 128.3.2.28

bash# /usr/sbin/kexportfs -v lilys:/home/milano
exporting lilys.lbl.gov:/home/milano
bash# /usr/sbin/kexportfs -v dara:/home/milano
exporting lilys.lbl.gov:/home/milano
bash# cat /var/lib/nfs/xtab
/home/milano lilys.lbl.gov(ro,sync,wdelay,secure,root_squash,no_all_squash,mapping=identity,anonuid=-2,anongid=-2)
bash# /usr/sbin/kexportfs -v 128.3.2.27:/home/milano
exporting 128.3.2.27:/home/milano
bash# cat /var/lib/nfs/xtab
/home/milano 128.3.2.27(ro,sync,wdelay,secure,root_squash,no_all_squash,mapping=identity,anonuid=-2,anongid=-2)
/home/milano lilys.lbl.gov(ro,sync,wdelay,secure,root_squash,no_all_squash,mapping=identity,anonuid=-2,anongid=-2)

Notice that the command "/usr/sbin/kexportfs -v dara:/home/milano" did
exactly the same thing as "/usr/sbin/kexportfs -v lilys:/home/milano".
However, referring to dara by its IP address removed the problem.

Unrelated Question: I haven't been paying attention until recently. Are
the various security holes in NFS that we've been hearing about plugged in
the latest knfsd?

Thanks,

-Rob

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
==== Rob Knop ===== rknop@lbl.gov ====== http://panisse.lbl.gov/~rknop ======

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/