Move the "no (hard) linking directories" and "no cross-mount links"
authorguenther <guenther@openbsd.org>
Mon, 25 Mar 2024 17:57:07 +0000 (17:57 +0000)
committerguenther <guenther@openbsd.org>
Mon, 25 Mar 2024 17:57:07 +0000 (17:57 +0000)
commit6cb92a3c9e9a3bfd60629a34e900e1c88285e838
treed74bfa582331f856529287548c06dc5933159a02
parent6a8ddadbb72108f5830f86d23984bb5fba6981eb
Move the "no (hard) linking directories" and "no cross-mount links"
checks from all the filesystems that support hardlinks at all into
the VFS layer.  Simplify, EPERM description in link(2).

ok miod@ mpi@
lib/libc/sys/link.2
sys/kern/vfs_syscalls.c
sys/miscfs/fuse/fuse_vnops.c
sys/nfs/nfs_serv.c
sys/nfs/nfs_vnops.c
sys/tmpfs/tmpfs_vnops.c
sys/ufs/ext2fs/ext2fs_vnops.c
sys/ufs/ufs/ufs_vnops.c