Bug 7272 - mountpoint on NFS server can be removed by NFS client
Summary: mountpoint on NFS server can be removed by NFS client
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 2.2.6-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-07-13 17:40 UTC by Andre Albsmeier
Modified: 1998-09-30 02:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Albsmeier 1998-07-13 17:40:00 UTC
Machine S is the NFS server, machine C is the client.

On S we mount /dev/sd2c on /test:

	root@S:> mount /dev/sd2c /test

In /test we have a directory test2 and we mount /dev/sd3c on /test/test2:

	root@S:> mount /dev/sd3c /test/test2

/test is properly exported to C. On the client we mount /test from the server:

	root@C:> mount S:/test /mnt

Then we (accidently) remove test2 on the client:

	root@C:> rmdir /mnt/test2

and it is gone... Sure this is no normal operation but IMHO it should not
be allowed since it could be done accidently. There is even no simple
way to recover from this (apart from reboot, any ideas?).

Fix: 

Don't know.
How-To-Repeat: 
	see above
Comment 1 Kirk McKusick freebsd_committer freebsd_triage 1998-09-30 02:54:08 UTC
State Changed
From-To: open->closed

Fixed in revision 1.100 of /sys/ufs/ufs/ufs_vnops.c. Thanks for the bug report.