Set the vfs_systcl member of the vsfops struct to eopnotsupp. While we check
authorkettenis <kettenis@openbsd.org>
Fri, 22 Jul 2016 13:11:01 +0000 (13:11 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 22 Jul 2016 13:11:01 +0000 (13:11 +0000)
for a null pointer now, all other filesystems fill in the complete table.

ok deraadt@, tom@

sys/tmpfs/tmpfs_vfsops.c

index ff49be0..9d67ec1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: tmpfs_vfsops.c,v 1.9 2016/07/11 22:36:25 tedu Exp $   */
+/*     $OpenBSD: tmpfs_vfsops.c,v 1.10 2016/07/22 13:11:01 kettenis Exp $      */
 /*     $NetBSD: tmpfs_vfsops.c,v 1.52 2011/09/27 01:10:43 christos Exp $       */
 
 /*
@@ -373,6 +373,6 @@ struct vfsops tmpfs_vfsops = {
        tmpfs_fhtovp,                   /* vfs_fhtovp */
        tmpfs_vptofh,                   /* vfs_vptofh */
        tmpfs_init,                     /* vfs_init */
-       NULL,                           /* vfs_sysctl */
+       (void *)eopnotsupp,             /* vfs_sysctl */
        (void *)eopnotsupp,
 };