freebsd-skq/sys/cddl
Pawel Jakub Dawidek 32371d2025 MFp4: Fix automatic snapshot mount when unprivileged user does lookup
on a snapshot directory:
- Remove PRIV_VFS_MOUNT check - regular users can mount snapshots
  via lookups on snapshot directory.
- Reset mount credential to kcred, so user won't be able to unmount
  the snapshot.
- Reset owner uid.
- Unlock vnode in case of a failure.

Reported by:	simokawa
2007-04-18 15:24:48 +00:00
..
compat/opensolaris MFp4: Fix automatic snapshot mount when unprivileged user does lookup 2007-04-18 15:24:48 +00:00
contrib/opensolaris MFp4: We check for PRIV_VFS_MOUNT already in mount(2) syscall and we don't 2007-04-18 15:22:07 +00:00