Ensure that file names passed back by readdir do not include a '/'
authorclaudio <claudio@openbsd.org>
Thu, 12 Sep 2024 09:04:51 +0000 (09:04 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 12 Sep 2024 09:04:51 +0000 (09:04 +0000)
commit46f7109a9e03df89b66ada65cf07c4da6ddb41a1
tree07b1bb9cbb1fedeaff6dd4a3a2ebd6531bfebeeb
parenteed253e77363388ae5f6e3ad62318560c8d398df
Ensure that file names passed back by readdir do not include a '/'
character. The '/' char is the path separator and is not allowed in
any filename.

NFS specific report by Apple Security Engineering and Architecture (SEAR).

Input from guenther@ and millert@
OK beck@ miod@
sys/isofs/cd9660/cd9660_vnops.c
sys/isofs/udf/udf_vnops.c
sys/nfs/nfs_vnops.c
sys/ntfs/ntfs_vnops.c
sys/tmpfs/tmpfs_subr.c
sys/ufs/ext2fs/ext2fs_lookup.c
sys/ufs/ufs/ufs_vnops.c