Pawel Jakub Dawidek 3410b19324 Fix many issues related to mount/unmount:
1. Root from inside a jail was able to unmount any file system
   (except /).
2. Unprivileged root was able to unmount file systems mounted by
   privileged root (execpt /).
3. User from inside a jail was able to mount file system when
   sysctl vfs.usermount was set to 1.
4. User was able to mount file system when vfs.usermount was set to 1
   (that's ok) and unmount it even if vfs.usermount was equal to 0
   (that's not correct).

Possibility from point 1 was reported by: Dariusz Kowalski <darek@76.pl>

Only a part of this fix will be MFC'ed (if approved).

PR:		kern/60149
Reviewed by:	rwatson
Approved by:	scottl (mentor)
MFC after:	3 days
2004-02-02 19:02:05 +00:00
..
2004-02-02 12:57:49 +00:00
2004-01-28 04:15:31 +00:00
2004-01-28 23:45:48 +00:00
2004-01-21 18:03:54 +00:00
2004-02-02 17:50:09 +00:00
2004-01-27 20:22:53 +00:00
2004-01-14 07:47:10 +00:00
2004-01-27 17:45:28 +00:00
2004-01-25 17:18:12 +00:00
2004-01-17 03:28:27 +00:00