freebsd-src/usr.sbin/mountd
Ian Dowse f93caef239 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
2001-04-22 21:50:30 +00:00
..
exports.5 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
Makefile - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mountd.8 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
mountd.c When exporting a directory that is not a mountpoint, mountd repeatedly 2001-04-22 21:50:30 +00:00
netgroup.5 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
pathnames.h BSD 4.4 Lite sbin Sources 1994-05-26 06:35:07 +00:00