Do a basic sanity check that dirents returned via fuse are kind of sane.
authorclaudio <claudio@openbsd.org>
Thu, 12 Sep 2024 09:10:46 +0000 (09:10 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 12 Sep 2024 09:10:46 +0000 (09:10 +0000)
commit00475b9b7a5913f394433f708ebd3dff5b5824cf
tree70927cac8f268933cbd69fc656ec91a48c11ffcb
parentfebe0fa6d057ea9bbfc5feb8edb2391180499f1f
Do a basic sanity check that dirents returned via fuse are kind of sane.

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. On top of this also check that d_reclen and d_namlen
are kind of sane and zero out the padding bytes after d_name.

OK beck@
sys/miscfs/fuse/fuse_vnops.c