NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/45556: Two problems with NFS server.



>Number:         45556
>Category:       bin
>Synopsis:       nfs problem. --alldirs works incorrectly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 01 21:15:00 +0000 2011
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.99.56
>Organization:
>Environment:
System: NetBSD asrock.chizhovka.net 5.99.56 NetBSD 5.99.56 (GENERIC) #0: Sat 
Oct 8 16:37:59 UTC 2011 
builds%b6.netbsd.org@localhost:/home/builds/ab/HEAD/amd64/201110081430Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC
 amd64
Architecture: x86_64
Machine: amd64
>Description:
1)
  NFS server exports extra directories.

    asrock# cat /etc/exports
    /long                  -network 127.0.0.1 -alldirs
    asrock# ls -l /long
    total 0
    -rw-r--r--  1 root  wheel  0 Nov  1 23:53 long_file
    asrock# ls -l /longer
    total 0
    -rw-r--r--  1 root  wheel  0 Nov  1 23:53 longer_file
    asrock# mkdir /mnt/long
    asrock# mkdir /mnt/longer
    asrock# mount -t nfs 127.0.0.1:/long /mnt/long
    asrock# mount -t nfs 127.0.0.1:/longer /mnt/longer
    asrock# ls -l /mnt/long
    total 0
    -rw-r--r--  1 root  wheel  0 Nov  1 23:53 long_file
    asrock# ls -l /mnt/longer
    total 0
    -rw-r--r--  1 root  wheel  0 Nov  1 23:53 longer_file
    asrock# uname -srm
    NetBSD 5.99.56 amd64
    asrock#

  I expect all directories UNDER /long/ be mountable, but not /longer/.

2)
  Conflicts between shorter and longer exported directories.

    asrock# cat /etc/exports
    /long                  -network 127.0.0.1 -ro
    /longer                -network 127.0.0.1
    asrock# mount -t nfs 127.0.0.1:/long /mnt/long
    asrock# ls -l /mnt/long
    total 0
    -rw-r--r--  1 root  wheel  0 Nov  1 23:53 long_file
    asrock# mount -t nfs 127.0.0.1:/longer /mnt/longer
    mount_nfs: can't access /longer: Permission denied
    asrock#
>Fix:
It looks like missing check for '/'.



Home | Main Index | Thread Index | Old Index