Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 23:12:40 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/nfs nfs_vfsops.c
Message-ID:  <200104050612.f356Cf739835@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2001/04/04 23:12:40 PDT

  Modified files:
    sys/nfs              nfs_vfsops.c 
  Log:
  o Rather than arbitrarily construct a credential in the nfs_statfs()
    VFS operation, make use of the calling process's credential.  This
    solution may not be ideal (there are a number of other possible
    proposals, including making use of the proc0 credential, adding a
    credential argument to the VFSOP, and switching from a hard-coded
    ucred to a hard-coded nfscred), it is simple and appears to
    work.  The arguments against using simply crget() are fairly
    strong: it is the only place in the code (other than a nearly
    identical invocation in ncp) where crget() is invoked, other than
    in the process credential creation code; as ucred becomes extensible,
    this use of crget() without appropriate context results in less and
    less meaningful credential data.  The implementation here will
    probably be tweaked as a result of experimentation and further
    exploration of the requirements.  In the mean-time, it allows
    progress to be made in ucred expansion for new security models without
    causing a crash every time df is used on an NFS mounted file system.
  
    This code has been interop tested against FreeBSD and Solaris NFS
    servers.  While using the process credentials should not introduce
    interop problems, please let me know if any turn out to exist.
  
  Reviewed by:	freebsd-arch
  
  Revision  Changes    Path
  1.95      +3 -7      src/sys/nfs/nfs_vfsops.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?200104050612.f356Cf739835>