Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2002 21:36:05 -0800 (PST)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/nfsserver nfs_serv.c
Message-ID:  <200201130536.g0D5a5B98621@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2002/01/12 21:36:05 PST

  Modified files:
    sys/nfsserver        nfs_serv.c 
  Log:
  It is required by VOP_CREATE, VOP_MKNOD, VOP_SYMLINK and VOP_MKDIR
  that va_mode of the supplied attributes is filled in with a valid
  file mode (i.e not VNOVAL, and only ALLPERM bits set). However,
  some NFS server op functions didn't guarantee this for all possible
  request messages:
  
  If a V3 client chose not include to a mode specification, we could
  end up creating an ffs inode with mode 0177777, requiring a manual
  fsck on the next reboot. Fix this by setting va_mode to 0 before
  calling the VOP if a mode hasn't been supplied by the client.
  
  In nfsrv_symlink(), S_IFMT bits supplied by a V2 client could end
  up in the va_mode passed to VOP_SYMLINK with similar effects. We
  now use the macro nfstov_mode() to correctly mask the bits.
  
  Revision  Changes    Path
  1.113     +9 -3      src/sys/nfsserver/nfs_serv.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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