Date: Sun, 22 Apr 2001 14:50:31 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mountd mountd.c Message-ID: <200104222150.f3MLoVR32416@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2001/04/22 14:50:31 PDT
Modified files:
sbin/mountd mountd.c
Log:
When exporting a directory that is not a mountpoint, mountd repeatedly
removes the last path component until the mount() succeeds. However,
the code never checks if it has passed the mountpoint, so in some
cases where the mount() never succeeds, it can end up applying the
flags from a mounted filesystem to the underlying one.
Add a sanity check to the code which removes the last path component:
test that the fsid associated with the new path is the same as that
of the old one.
PR: bin/7872
Revision Changes Path
1.49 +9 -1 src/sbin/mountd/mountd.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?200104222150.f3MLoVR32416>
