Index: sys/compat/linux/linux_mmap.c =================================================================== --- sys/compat/linux/linux_mmap.c +++ sys/compat/linux/linux_mmap.c @@ -128,7 +128,8 @@ error = fget(td, fd, &cap_mmap_rights, &fp); if (error != 0) return (error); - if (fp->f_type != DTYPE_VNODE && fp->f_type != DTYPE_DEV) { + if (fp->f_type != DTYPE_VNODE && fp->f_type != DTYPE_DEV && + fp->f_type != DTYPE_SHM) { fdrop(fp, td); return (EINVAL); }